Commit bfa022d7 by zhengxj

finish 处理到处技工信息为空问题 on 20200311 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@26095 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent bb8104c5
...@@ -117,7 +117,7 @@ public class ReportController extends BaseReportController { ...@@ -117,7 +117,7 @@ public class ReportController extends BaseReportController {
JSONObject user = userClient.getUserById(oueryOrderReq.getUserId()); JSONObject user = userClient.getUserById(oueryOrderReq.getUserId());
int userType = user.getIntValue("userType"); int userType = user.getIntValue("userType");
oueryOrderReq.setUserType(userType); oueryOrderReq.setUserType(userType);
oueryOrderReq.setNeedMoreInfo(true);
List<SysOrder> list = orderService.getOrderListByExample(null, null, oueryOrderReq); List<SysOrder> list = orderService.getOrderListByExample(null, null, oueryOrderReq);
if (list.size() > 10000) { if (list.size() > 10000) {
...@@ -135,7 +135,8 @@ public class ReportController extends BaseReportController { ...@@ -135,7 +135,8 @@ public class ReportController extends BaseReportController {
exportOrderVo.setActiveStatus( exportOrderVo.setActiveStatus(
tranceActiveStatus(sysOrder.getActiveStatus(), userType, sysOrder.getCanceled())); tranceActiveStatus(sysOrder.getActiveStatus(), userType, sysOrder.getCanceled()));
if (sysOrder.getMachanicInfo() != null) { if (sysOrder.getMachanicInfo() != null) {
exportOrderVo.setMerchanicInfo(sysOrder.getMachanicInfo().getName() + "\r\n" + sysOrder.getMachanicInfo().getPhone()); exportOrderVo.setMechanicInfo(
sysOrder.getMachanicInfo().getName() + "\n" + sysOrder.getMachanicInfo().getPhone());
} }
//订单类型 //订单类型
exportOrderVo.setOrderType(tranceOrderType(sysOrder.getOrderType())); exportOrderVo.setOrderType(tranceOrderType(sysOrder.getOrderType()));
...@@ -143,7 +144,7 @@ public class ReportController extends BaseReportController { ...@@ -143,7 +144,7 @@ public class ReportController extends BaseReportController {
} }
} }
try { try {
exportObject(response, list1, "导出订单列表"); exportObject(response, list1, "导出订单列表", true);
} catch (IOException e) { } catch (IOException e) {
logger.info("导出订单列表异常"); logger.info("导出订单列表异常");
} }
...@@ -283,7 +284,8 @@ public class ReportController extends BaseReportController { ...@@ -283,7 +284,8 @@ public class ReportController extends BaseReportController {
} }
exportOrderVo.setActiveStatus(tranceActiveStatus(sysOrder.getActiveStatus(), oueryOrderReq.getUserType(), sysOrder.getCanceled())); exportOrderVo.setActiveStatus(tranceActiveStatus(sysOrder.getActiveStatus(), oueryOrderReq.getUserType(), sysOrder.getCanceled()));
if (sysOrder.getMachanicInfo() != null) { if (sysOrder.getMachanicInfo() != null) {
exportOrderVo.setMerchanicInfo(sysOrder.getMachanicInfo().getName() + "\r\n" + sysOrder.getMachanicInfo().getPhone()); exportOrderVo.setMechanicInfo(
sysOrder.getMachanicInfo().getName() + "\r\n" + sysOrder.getMachanicInfo().getPhone());
} }
//订单类型 //订单类型
exportOrderVo.setOrderType(tranceOrderType(sysOrder.getOrderType())); exportOrderVo.setOrderType(tranceOrderType(sysOrder.getOrderType()));
......
...@@ -27,7 +27,7 @@ public class ExportOrderVo { ...@@ -27,7 +27,7 @@ public class ExportOrderVo {
private String serviceType; private String serviceType;
@ExcelColumn(value = "技工信息",index = 6) @ExcelColumn(value = "技工信息",index = 6)
private String merchanicInfo; private String mechanicInfo;
@ExcelColumn(value = "车架号",index = 7) @ExcelColumn(value = "车架号",index = 7)
private String vinNo; private String vinNo;
...@@ -120,12 +120,12 @@ public class ExportOrderVo { ...@@ -120,12 +120,12 @@ public class ExportOrderVo {
this.serviceType = serviceType; this.serviceType = serviceType;
} }
public String getMerchanicInfo() { public String getMechanicInfo() {
return merchanicInfo; return mechanicInfo;
} }
public void setMerchanicInfo(String merchanicInfo) { public void setMechanicInfo(String mechanicInfo) {
this.merchanicInfo = merchanicInfo; this.mechanicInfo = mechanicInfo;
} }
public String getAddress() { public String getAddress() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!