Commit 9a144e58 by 向延琳

Merge branch 'v1.6.0' of http://192.168.3.233:8090/eshiled-new/ne-shield-trialdr…

…ive-admin into v1.6.0
2 parents 1ba16550 74645984
...@@ -10,6 +10,10 @@ public class WorkOrderDTO { ...@@ -10,6 +10,10 @@ public class WorkOrderDTO {
private Long id; private Long id;
private String orderNo; private String orderNo;
/**
* 店面名称
*/
private String shopName;
private String serviceType; private String serviceType;
private String needInstall; private String needInstall;
......
...@@ -13,9 +13,15 @@ public class WorkOrderExport { ...@@ -13,9 +13,15 @@ public class WorkOrderExport {
@ExcelIgnore @ExcelIgnore
private Long id; private Long id;
@ExcelProperty(value = "系统工单号", index = 0) @ExcelIgnore
private String orderNo; private String orderNo;
/**
* 店面名称
*/
@ExcelProperty(value = "店面名称", index = 0)
private String shopName;
@ExcelProperty(value = "服务类型", index = 1) @ExcelProperty(value = "服务类型", index = 1)
private String serviceType; private String serviceType;
...@@ -31,9 +37,6 @@ public class WorkOrderExport { ...@@ -31,9 +37,6 @@ public class WorkOrderExport {
@ExcelProperty(value = "车架号", index = 5) @ExcelProperty(value = "车架号", index = 5)
private String vin; private String vin;
@ExcelIgnore
private String deviceCompose;
@ExcelProperty(value = "设备数量", index = 6) @ExcelProperty(value = "设备数量", index = 6)
private Integer deviceCnt; private Integer deviceCnt;
...@@ -51,19 +54,25 @@ public class WorkOrderExport { ...@@ -51,19 +54,25 @@ public class WorkOrderExport {
@ExcelProperty(value = "期望服务时间", index = 10) @ExcelProperty(value = "期望服务时间", index = 10)
private String serviceApm; private String serviceApm;
/**
* 设备组合
*/
@ExcelProperty(value = "设备组合", index = 11)
private String deviceCompose;
// @ExcelProperty(value = "安装服务商", index = 0) // @ExcelProperty(value = "安装服务商", index = 0)
// private String serviceProvider; // private String serviceProvider;
// //
// @ExcelProperty(value = "安装人", index = 0) // @ExcelProperty(value = "安装人", index = 0)
// private String mechanicName; // private String mechanicName;
@ExcelProperty(value = "工单归属", index = 11) @ExcelProperty(value = "工单归属", index = 12)
private String createdBy; private String createdBy;
@ExcelIgnore @ExcelIgnore
private Integer status; private Integer status;
@ExcelProperty(value = "系统工单状态", index = 12) @ExcelProperty(value = "系统工单状态", index = 13)
private String statusDesc; private String statusDesc;
} }
...@@ -49,10 +49,7 @@ import org.springframework.stereotype.Service; ...@@ -49,10 +49,7 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.ArrayList; import java.util.*;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.function.Function; import java.util.function.Function;
import java.util.stream.Collectors; import java.util.stream.Collectors;
...@@ -133,6 +130,7 @@ public class WorkOrderService { ...@@ -133,6 +130,7 @@ public class WorkOrderService {
workOrderDTO.setDeviceCnt(getDeviceCnt(workOrderDTO.getDeviceCompose())); workOrderDTO.setDeviceCnt(getDeviceCnt(workOrderDTO.getDeviceCompose()));
workOrderDTO.setServiceType(BizServiceTypeEnum.getNameByType(workOrderDTO.getServiceType())); workOrderDTO.setServiceType(BizServiceTypeEnum.getNameByType(workOrderDTO.getServiceType()));
workOrderDTO.setStatusDesc(WorkOrderStatusEnum.getDescByStatus(workOrderDTO.getStatus())); workOrderDTO.setStatusDesc(WorkOrderStatusEnum.getDescByStatus(workOrderDTO.getStatus()));
workOrderDTO.setDeviceCompose(DeviceComposeEnum.getNameByCode(workOrderDTO.getDeviceCompose()));
}); });
return list; return list;
} }
......
...@@ -82,6 +82,7 @@ ...@@ -82,6 +82,7 @@
<select id="search" resultType="cn.com.glsx.admin.modules.model.WorkOrderDTO"> <select id="search" resultType="cn.com.glsx.admin.modules.model.WorkOrderDTO">
select tw.id, select tw.id,
tw.order_no orderNo, tw.order_no orderNo,
tw.shop_name shopName,
tw.partner_order_no bizOrderNo, tw.partner_order_no bizOrderNo,
tw.service_type serviceType, tw.service_type serviceType,
tw.need_install needInstall, tw.need_install needInstall,
...@@ -143,6 +144,7 @@ ...@@ -143,6 +144,7 @@
<select id="export" resultType="cn.com.glsx.admin.modules.model.export.WorkOrderExport"> <select id="export" resultType="cn.com.glsx.admin.modules.model.export.WorkOrderExport">
select tw.id, select tw.id,
tw.order_no orderNo, tw.order_no orderNo,
tw.shop_name shopName,
tw.need_install needInstall, tw.need_install needInstall,
tw.partner_order_no bizOrderNo, tw.partner_order_no bizOrderNo,
tw.service_type serviceType, tw.service_type serviceType,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!