Commit cfd126b7 by wubh

包活干V1.7.0-修改前端和数据库实体类、导出表格格式

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@27457 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent a07da377
......@@ -15,6 +15,7 @@ import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.glsx.common.feign.client.UserClient;
import com.glsx.common.pojo.PagedResp;
import com.glsx.common.utils.StringUtils;
import com.glsx.common.utils.UserUtils;
import com.glsx.ordercenter.constants.OrderTypeEnum;
import com.glsx.ordercenter.constants.ReconciliationStatusEnum;
......@@ -206,6 +207,19 @@ public class ReportController extends BaseReportController {
sysOrder.getMachanicInfo().getName() + "\n" + sysOrder.getMachanicInfo()
.getPhone());
}
// 品牌车型
if (sysOrder.getCarInfo() != null) {
exportOrderVo.setCarBrand(StringUtils.join(new String[] {
sysOrder.getCarInfo().getBrand(),
sysOrder.getCarInfo().getSeries(),
sysOrder.getCarInfo().getType()
}, ""));
}
// 安装照片地址
if (StringUtils.isNotEmpty(sysOrder.getInstallPiuctures())) {
exportOrderVo.setInstallLocationPicture(StringUtils.join(
sysOrder.getInstallPiuctures(), ",\n"));
}
//订单类型
exportOrderVo.setOrderType(this.tranceOrderType(sysOrder.getOrderType()));
list1.add(exportOrderVo);
......
package com.glsx.ordercenter.pojo;
import java.util.Date;
import com.glsx.excel.poi.annotation.ExcelColumn;
import com.glsx.excel.poi.annotation.ExcelExport;
import java.util.Date;
@ExcelExport
public class ExportOrderVo {
@ExcelColumn(value = "订单编号",index = 0)
@ExcelColumn(value = "订单编号", index = 0)
private String orderSn;
@ExcelColumn(value = "订单渠道",index = 1)
@ExcelColumn(value = "第三方工单号", index = 1)
private String workOrderNo;
@ExcelColumn(value = "订单渠道", index = 2)
private String orderChannel;
@ExcelColumn(value = "服务类型",index = 2)
@ExcelColumn(value = "服务类型", index = 3)
private String installDeviceTypeName;
@ExcelColumn(value = "派单日期",index = 3,pattern = "yyyy-MM-dd HH:mm:ss")
@ExcelColumn(value = "派单日期", index = 4, pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
@ExcelColumn(value = "状态",index = 4)
@ExcelColumn(value = "接单时间", index = 5, pattern = "yyyy-MM-dd HH:mm:ss")
private Date receiveTime;
@ExcelColumn(value = "预约时间", index = 6, pattern = "yyyy-MM-dd HH:mm:ss")
private Date reserveInstallTime;
@ExcelColumn(value = "上门时间", index = 7, pattern = "yyyy-MM-dd HH:mm:ss")
private Date checkInTime;
@ExcelColumn(value = "完成时间", index = 8, pattern = "yyyy-MM-dd HH:mm:ss")
private Date completeTime;
@ExcelColumn(value = "状态", index = 9)
private String activeStatus;
@ExcelColumn(value = "上门类型",index = 5)
@ExcelColumn(value = "上门类型", index = 10)
private String serviceType;
@ExcelColumn(value = "技工信息",index = 6)
private String mechanicInfo;
@ExcelColumn(value = "车架号",index = 7)
@ExcelColumn(value = "车架号", index = 11)
private String vinNo;
@ExcelColumn(value = "车主姓名",index = 8)
@ExcelColumn(value = "品牌车型", index = 12)
private String carBrand;
@ExcelColumn(value = "车主姓名", index = 13)
private String carOwner;
@ExcelColumn(value = "商户名称",index = 9)
@ExcelColumn(value = "车主联系方式", index = 14)
private String carOwnerPhone;
@ExcelColumn(value = "商户名称", index = 15)
private String merchantName;
@ExcelColumn(value = "所在省",index = 10)
@ExcelColumn(value = "所在省", index = 16)
private String province;
@ExcelColumn(value = "所在市",index = 11)
@ExcelColumn(value = "所在市", index = 17)
private String city;
@ExcelColumn(value = "服务地址",index = 12)
@ExcelColumn(value = "服务地址", index = 18)
private String address;
@ExcelColumn(value = "第三方工单号",index = 13)
private String workOrderNo;
@ExcelColumn(value = "服务商名称",index = 14)
@ExcelColumn(value = "服务商名称", index = 19)
private String serviceName;
@ExcelColumn(value = "订单类型",index = 15)
private String orderType;
public String getServiceName() {
return serviceName;
}
@ExcelColumn(value = "技工信息", index = 20)
private String mechanicInfo;
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
@ExcelColumn(value = "订单类型", index = 21)
private String orderType;
public String getOrderType() {
return orderType;
}
@ExcelColumn(value = "安装地址", index = 22)
private String installLocation;
public void setOrderType(String orderType) {
this.orderType = orderType;
}
@ExcelColumn(value = "安装照片地址", index = 23)
private String installLocationPicture;
public String getOrderSn() {
return orderSn;
......@@ -80,6 +86,14 @@ public class ExportOrderVo {
this.orderSn = orderSn;
}
public String getWorkOrderNo() {
return workOrderNo;
}
public void setWorkOrderNo(String workOrderNo) {
this.workOrderNo = workOrderNo;
}
public String getOrderChannel() {
return orderChannel;
}
......@@ -104,36 +118,52 @@ public class ExportOrderVo {
this.createTime = createTime;
}
public String getActiveStatus() {
return activeStatus;
public Date getReceiveTime() {
return receiveTime;
}
public void setActiveStatus(String activeStatus) {
this.activeStatus = activeStatus;
public void setReceiveTime(Date receiveTime) {
this.receiveTime = receiveTime;
}
public String getServiceType() {
return serviceType;
public Date getReserveInstallTime() {
return reserveInstallTime;
}
public void setServiceType(String serviceType) {
this.serviceType = serviceType;
public void setReserveInstallTime(Date reserveInstallTime) {
this.reserveInstallTime = reserveInstallTime;
}
public String getMechanicInfo() {
return mechanicInfo;
public Date getCheckInTime() {
return checkInTime;
}
public void setMechanicInfo(String mechanicInfo) {
this.mechanicInfo = mechanicInfo;
public void setCheckInTime(Date checkInTime) {
this.checkInTime = checkInTime;
}
public String getAddress() {
return address;
public Date getCompleteTime() {
return completeTime;
}
public void setAddress(String address) {
this.address = address;
public void setCompleteTime(Date completeTime) {
this.completeTime = completeTime;
}
public String getActiveStatus() {
return activeStatus;
}
public void setActiveStatus(String activeStatus) {
this.activeStatus = activeStatus;
}
public String getServiceType() {
return serviceType;
}
public void setServiceType(String serviceType) {
this.serviceType = serviceType;
}
public String getVinNo() {
......@@ -144,6 +174,14 @@ public class ExportOrderVo {
this.vinNo = vinNo;
}
public String getCarBrand() {
return carBrand;
}
public void setCarBrand(String carBrand) {
this.carBrand = carBrand;
}
public String getCarOwner() {
return carOwner;
}
......@@ -152,6 +190,14 @@ public class ExportOrderVo {
this.carOwner = carOwner;
}
public String getCarOwnerPhone() {
return carOwnerPhone;
}
public void setCarOwnerPhone(String carOwnerPhone) {
this.carOwnerPhone = carOwnerPhone;
}
public String getMerchantName() {
return merchantName;
}
......@@ -176,11 +222,81 @@ public class ExportOrderVo {
this.city = city;
}
public String getWorkOrderNo() {
return workOrderNo;
public String getAddress() {
return address;
}
public void setWorkOrderNo(String workOrderNo) {
this.workOrderNo = workOrderNo;
public void setAddress(String address) {
this.address = address;
}
public String getServiceName() {
return serviceName;
}
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
public String getMechanicInfo() {
return mechanicInfo;
}
public void setMechanicInfo(String mechanicInfo) {
this.mechanicInfo = mechanicInfo;
}
public String getOrderType() {
return orderType;
}
public void setOrderType(String orderType) {
this.orderType = orderType;
}
public String getInstallLocation() {
return installLocation;
}
public void setInstallLocation(String installLocation) {
this.installLocation = installLocation;
}
public String getInstallLocationPicture() {
return installLocationPicture;
}
public void setInstallLocationPicture(String installLocationPicture) {
this.installLocationPicture = installLocationPicture;
}
@Override
public String toString() {
return "ExportOrderVo{" +
"orderSn='" + orderSn + '\'' +
", workOrderNo='" + workOrderNo + '\'' +
", orderChannel='" + orderChannel + '\'' +
", installDeviceTypeName='" + installDeviceTypeName + '\'' +
", createTime=" + createTime +
", receiveTime=" + receiveTime +
", reserveInstallTime=" + reserveInstallTime +
", checkInTime=" + checkInTime +
", completeTime=" + completeTime +
", activeStatus='" + activeStatus + '\'' +
", serviceType='" + serviceType + '\'' +
", vinNo='" + vinNo + '\'' +
", carBrand='" + carBrand + '\'' +
", carOwner='" + carOwner + '\'' +
", carOwnerPhone='" + carOwnerPhone + '\'' +
", merchantName='" + merchantName + '\'' +
", province='" + province + '\'' +
", city='" + city + '\'' +
", address='" + address + '\'' +
", serviceName='" + serviceName + '\'' +
", mechanicInfo='" + mechanicInfo + '\'' +
", orderType='" + orderType + '\'' +
", installLocation='" + installLocation + '\'' +
", installLocationPicture='" + installLocationPicture + '\'' +
'}';
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!