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 e3c4d75f
authored
Jan 06, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
工单导入
1 parent
82235b26
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
src/main/java/cn/com/glsx/admin/modules/model/imports/WorkOrderImportListener.java
src/main/java/cn/com/glsx/admin/modules/model/imports/WorkOrderImportListener.java
View file @
e3c4d75
...
@@ -151,7 +151,6 @@ public class WorkOrderImportListener extends AnalysisEventListener<WorkOrderImpo
...
@@ -151,7 +151,6 @@ public class WorkOrderImportListener extends AnalysisEventListener<WorkOrderImpo
log
.
warn
(
woi
.
toString
());
log
.
warn
(
woi
.
toString
());
return
false
;
return
false
;
}
}
}
ZonedDateTime
nowTime
=
ZonedDateTime
.
now
();
ZonedDateTime
nowTime
=
ZonedDateTime
.
now
();
ZonedDateTime
dateTime
=
ZonedDateTime
.
ofInstant
(
Instant
.
ofEpochMilli
(
woi
.
getServiceTime
().
toInstant
().
toEpochMilli
()),
ZoneId
.
systemDefault
());
ZonedDateTime
dateTime
=
ZonedDateTime
.
ofInstant
(
Instant
.
ofEpochMilli
(
woi
.
getServiceTime
().
toInstant
().
toEpochMilli
()),
ZoneId
.
systemDefault
());
...
@@ -162,15 +161,6 @@ public class WorkOrderImportListener extends AnalysisEventListener<WorkOrderImpo
...
@@ -162,15 +161,6 @@ public class WorkOrderImportListener extends AnalysisEventListener<WorkOrderImpo
return
false
;
return
false
;
}
}
//检查未完成工单
WorkOrder
workOrder
=
workOrderService
.
getIncompleteWorkOrder
(
BizServiceTypeEnum
.
INSTALL
.
getType
(),
woi
.
getVin
());
if
(
workOrder
!=
null
)
{
woi
.
setImportFailReason
(
"存在相同的车架号"
);
log
.
warn
(
woi
.
toString
());
return
false
;
}
if
(
needInstallFlag
)
{
//需要安装时,检查设备组合
//需要安装时,检查设备组合
boolean
checkDeviceComposeFlag
=
workOrderService
.
checkDeviceCompose
(
woi
);
boolean
checkDeviceComposeFlag
=
workOrderService
.
checkDeviceCompose
(
woi
);
if
(!
checkDeviceComposeFlag
)
{
if
(!
checkDeviceComposeFlag
)
{
...
@@ -180,6 +170,14 @@ public class WorkOrderImportListener extends AnalysisEventListener<WorkOrderImpo
...
@@ -180,6 +170,14 @@ public class WorkOrderImportListener extends AnalysisEventListener<WorkOrderImpo
}
}
}
}
//检查未完成工单
WorkOrder
workOrder
=
workOrderService
.
getIncompleteWorkOrder
(
BizServiceTypeEnum
.
INSTALL
.
getType
(),
woi
.
getVin
());
if
(
workOrder
!=
null
)
{
woi
.
setImportFailReason
(
"存在相同的车架号"
);
log
.
warn
(
woi
.
toString
());
return
false
;
}
//去掉数字
//去掉数字
if
(
StringUtils
.
isNotEmpty
(
woi
.
getServiceApm
()))
{
if
(
StringUtils
.
isNotEmpty
(
woi
.
getServiceApm
()))
{
woi
.
setServiceApm
(
woi
.
getServiceApm
().
replace
(
"1"
,
""
).
replace
(
"2"
,
""
));
woi
.
setServiceApm
(
woi
.
getServiceApm
().
replace
(
"1"
,
""
).
replace
(
"2"
,
""
));
...
...
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