Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2dc9378c
authored
Jan 05, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
导出模板修改
1 parent
f35eada1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
21 deletions
src/main/java/cn/com/glsx/admin/modules/model/export/WorkOrderExport.java
src/main/java/cn/com/glsx/admin/modules/service/WorkOrderService.java
src/main/resources/mapper/WorkOrderMapper.xml
src/main/java/cn/com/glsx/admin/modules/model/export/WorkOrderExport.java
View file @
2dc9378
...
...
@@ -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
;
}
src/main/java/cn/com/glsx/admin/modules/service/WorkOrderService.java
View file @
2dc9378
...
...
@@ -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
()));
...
...
src/main/resources/mapper/WorkOrderMapper.xml
View file @
2dc9378
...
...
@@ -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,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment