Commit 45c712b6 by xiaoyj

测试提测

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@21441 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent ab37ab27
...@@ -69,6 +69,11 @@ public class ReportController extends BaseReportController{ ...@@ -69,6 +69,11 @@ public class ReportController extends BaseReportController{
for(SysOrder sysOrder:list){ for(SysOrder sysOrder:list){
ExportOrderVo exportOrderVo=new ExportOrderVo(); ExportOrderVo exportOrderVo=new ExportOrderVo();
BeanUtils.copyProperties(sysOrder,exportOrderVo); BeanUtils.copyProperties(sysOrder,exportOrderVo);
if("1".equals(sysOrder.getServiceType())){
exportOrderVo.setServiceType("上门");
}else{
exportOrderVo.setServiceType("驻店");
}
exportOrderVo.setActiveStatus(tranceActiveStatus(sysOrder.getActiveStatus())); exportOrderVo.setActiveStatus(tranceActiveStatus(sysOrder.getActiveStatus()));
if(sysOrder.getMachanicInfo()!=null){ if(sysOrder.getMachanicInfo()!=null){
exportOrderVo.setMerchanicInfo(sysOrder.getMachanicInfo().getName()+"\r\n"+sysOrder.getMachanicInfo().getPhone()); exportOrderVo.setMerchanicInfo(sysOrder.getMachanicInfo().getName()+"\r\n"+sysOrder.getMachanicInfo().getPhone());
...@@ -86,19 +91,21 @@ public class ReportController extends BaseReportController{ ...@@ -86,19 +91,21 @@ public class ReportController extends BaseReportController{
if(activeStatus==1){ if(activeStatus==1){
return "商户已派单"; return "商户已派单";
}else if(activeStatus==2){ }else if(activeStatus==2){
return "服务商已接单,未指派给技工"; return "服务商已接单";
}else if(activeStatus==3){ }else if(activeStatus==3){
return "服务商拒单"; return "服务商已拒单";
}else if(activeStatus==4){ }else if(activeStatus==4){
return "服务商已派单,技工未接单"; return "服务商已指派";
}else if(activeStatus==5){ }else if(activeStatus==5){
return "技工拒单"; return "技工拒单";
}else if(activeStatus==6){ }else if(activeStatus==6){
return "技工接单未预约"; return "技工已接单";
} else if(activeStatus==7){ } else if(activeStatus==7){
return "技工已预约,未完成"; return "技工已预约";
}else{ }else if(activeStatus==8){
return "已完成"; return "已完成";
}else{
return "已取消";
} }
} }
......
...@@ -15,7 +15,7 @@ public class ExportOrderVo { ...@@ -15,7 +15,7 @@ public class ExportOrderVo {
private String orderChannel; private String orderChannel;
@ExcelColumn(value = "服务类型",index = 2) @ExcelColumn(value = "服务类型",index = 2)
private String installDeviceType; private String installDeviceTypeName;
@ExcelColumn(value = "派单日期",index = 3,pattern = "yyyy-MM-dd HH:mm:ss") @ExcelColumn(value = "派单日期",index = 3,pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime; private Date createTime;
...@@ -29,24 +29,24 @@ public class ExportOrderVo { ...@@ -29,24 +29,24 @@ public class ExportOrderVo {
@ExcelColumn(value = "技工信息",index = 6) @ExcelColumn(value = "技工信息",index = 6)
private String merchanicInfo; private String merchanicInfo;
@ExcelColumn(value = "服务地址",index = 7) @ExcelColumn(value = "车架号",index = 7)
private String adress;
@ExcelColumn(value = "车架号",index = 8)
private String vinNo; private String vinNo;
@ExcelColumn(value = "车主姓名",index = 9) @ExcelColumn(value = "车主姓名",index = 8)
private String carOwner; private String carOwner;
@ExcelColumn(value = "商户名称",index = 10) @ExcelColumn(value = "商户名称",index = 9)
private String merchantName; private String merchantName;
@ExcelColumn(value = "(所在省",index = 11) @ExcelColumn(value = "所在省",index = 10)
private String province; private String province;
@ExcelColumn(value = "所在市",index = 12) @ExcelColumn(value = "所在市",index = 11)
private String city; private String city;
@ExcelColumn(value = "服务地址",index = 12)
private String address;
@ExcelColumn(value = "第三方工单号",index = 13) @ExcelColumn(value = "第三方工单号",index = 13)
private String workOrderNo; private String workOrderNo;
...@@ -66,12 +66,12 @@ public class ExportOrderVo { ...@@ -66,12 +66,12 @@ public class ExportOrderVo {
this.orderChannel = orderChannel; this.orderChannel = orderChannel;
} }
public String getInstallDeviceType() { public String getInstallDeviceTypeName() {
return installDeviceType; return installDeviceTypeName;
} }
public void setInstallDeviceType(String installDeviceType) { public void setInstallDeviceTypeName(String installDeviceTypeName) {
this.installDeviceType = installDeviceType; this.installDeviceTypeName = installDeviceTypeName;
} }
public Date getCreateTime() { public Date getCreateTime() {
...@@ -106,12 +106,12 @@ public class ExportOrderVo { ...@@ -106,12 +106,12 @@ public class ExportOrderVo {
this.merchanicInfo = merchanicInfo; this.merchanicInfo = merchanicInfo;
} }
public String getAdress() { public String getAddress() {
return adress; return address;
} }
public void setAdress(String adress) { public void setAddress(String address) {
this.adress = adress; this.address = address;
} }
public String getVinNo() { public String getVinNo() {
......
...@@ -26,15 +26,15 @@ public class ExportUnknownOrderVo { ...@@ -26,15 +26,15 @@ public class ExportUnknownOrderVo {
@ExcelColumn(value = "未派单原因",index = 5) @ExcelColumn(value = "未派单原因",index = 5)
private String reason; private String reason;
@ExcelColumn(value = "服务地址",index = 6) @ExcelColumn(value = "所在省",index = 6)
private String address;
@ExcelColumn(value = "(所在省",index = 7)
private String province; private String province;
@ExcelColumn(value = "所在市",index = 8) @ExcelColumn(value = "所在市",index = 7)
private String city; private String city;
@ExcelColumn(value = "服务地址",index = 8)
private String address;
@ExcelColumn(value = "第三方工单号",index = 9) @ExcelColumn(value = "第三方工单号",index = 9)
private String workOrderNo; private String workOrderNo;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!