Commit 2dc9378c by levphon

导出模板修改

1 parent f35eada1
......@@ -19,48 +19,51 @@ public class WorkOrderExport {
@ExcelProperty(value = "服务类型", index = 1)
private String serviceType;
@ExcelProperty(value = "业务工单号", index = 2)
@ExcelProperty(value = "是否需要安装", index = 2)
private String needInstall;
@ExcelProperty(value = "业务工单号", index = 3)
private String bizOrderNo;
@ExcelProperty(value = "姓名", index = 3)
@ExcelProperty(value = "姓名", index = 4)
private String ownerName;
@ExcelProperty(value = "车架号", index = 4)
@ExcelProperty(value = "车架号", index = 5)
private String vin;
@ExcelProperty(value = "期望安装日期", index = 5)
@DateTimeFormat(value = "yyyy/MM/dd")
private Date serviceTime;
@ExcelProperty(value = "期望安装时间", index = 6)
private String serviceApm;
@ExcelIgnore
private String deviceCompose;
@ExcelProperty(value = "设备数量", index = 7)
@ExcelProperty(value = "设备数量", index = 6)
private Integer deviceCnt;
@ExcelIgnore
private Integer status;
@ExcelProperty(value = "系统工单状态", index = 8)
private String statusDesc;
@ExcelProperty(value = "创建时间", index = 7)
@DateTimeFormat(value = "yyyy-MM-dd HH:mm:ss")
private String createdDate;
@ExcelProperty(value = "客户归属", index = 9)
@ExcelProperty(value = "所属组织", index = 8)
private String tenantName;
@ExcelProperty(value = "期望安装日期", index = 9)
@DateTimeFormat(value = "yyyy/MM/dd")
private Date serviceTime;
@ExcelProperty(value = "期望安装时间", index = 10)
private String serviceApm;
// @ExcelProperty(value = "安装服务商", index = 0)
// private String serviceProvider;
//
// @ExcelProperty(value = "安装人", index = 0)
// private String mechanicName;
@ExcelProperty(value = "创建人", index = 10)
@ExcelProperty(value = "工单归属", index = 11)
private String createdBy;
@ExcelProperty(value = "创建时间", index = 11)
@DateTimeFormat(value = "yyyy-MM-dd HH:mm:ss")
private String createdDate;
@ExcelIgnore
private Integer status;
@ExcelProperty(value = "系统工单状态", index = 12)
private String statusDesc;
}
......@@ -110,6 +110,7 @@ public class WorkOrderService {
List<WorkOrderExport> list = workOrderMapper.export(search);
list.forEach(workOrderDTO -> {
workOrderDTO.setNeedInstall("Y".equalsIgnoreCase(workOrderDTO.getNeedInstall()) ? "是" : "否");
workOrderDTO.setDeviceCnt(getDeviceCnt(workOrderDTO.getDeviceCompose()));
workOrderDTO.setServiceType(BizServiceTypeEnum.getNameByType(workOrderDTO.getServiceType()));
workOrderDTO.setStatusDesc(WorkOrderStatusEnum.getDescByStatus(workOrderDTO.getStatus()));
......
......@@ -141,6 +141,7 @@
<select id="export" resultType="cn.com.glsx.admin.modules.model.export.WorkOrderExport">
select tw.id,
tw.order_no orderNo,
tw.need_install needInstall,
tw.partner_order_no bizOrderNo,
tw.service_type serviceType,
tw.service_time serviceTime,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!