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 cd8bd539
authored
Jan 02, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
工单详情-验证、激活
1 parent
90170508
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
11 deletions
src/main/java/cn/com/glsx/admin/modules/service/WorkOrderService.java
src/main/java/cn/com/glsx/admin/modules/service/WorkOrderService.java
View file @
cd8bd53
...
...
@@ -67,6 +67,9 @@ public class WorkOrderService {
private
VehicleMapper
vehicleMapper
;
@Resource
private
DeviceMapper
deviceMapper
;
@Resource
private
VehicleDeviceMapper
vehicleDeviceMapper
;
@Autowired
...
...
@@ -159,9 +162,9 @@ public class WorkOrderService {
BeanUtils
.
copyProperties
(
woi
,
workOrderBO
);
if
(
StringUtils
.
isNotEmpty
(
woi
.
getShopTelephone
()))
{
if
(
StringUtils
.
isNotEmpty
(
woi
.
getShopContactor
()))
{
workOrderBO
.
setS
erviceLink
Info
(
woi
.
getShopContactor
()
+
","
+
woi
.
getShopTelephone
());
workOrderBO
.
setS
hopContact
Info
(
woi
.
getShopContactor
()
+
","
+
woi
.
getShopTelephone
());
}
else
{
workOrderBO
.
setS
erviceLink
Info
(
woi
.
getShopTelephone
()
+
","
+
woi
.
getShopTelephone
());
workOrderBO
.
setS
hopContact
Info
(
woi
.
getShopTelephone
()
+
","
+
woi
.
getShopTelephone
());
}
}
if
(
StringUtils
.
isNotEmpty
(
woi
.
getInstallLinkerPhone
()))
{
...
...
@@ -233,17 +236,20 @@ public class WorkOrderService {
installWorkOrderBO
.
setInstallAddress
(
workOrderBO
.
getServiceAddress
());
installWorkOrderBO
.
setInstallExplain
(
workOrderBO
.
getServiceExplain
());
String
[]
shopContactInfo
=
workOrderBO
.
getShopContactInfo
().
split
(
"[, ,]"
);
installWorkOrderBO
.
setShopContactor
(
shopContactInfo
[
0
]);
if
(
shopContactInfo
.
length
>
1
)
{
installWorkOrderBO
.
setShopTelephone
(
shopContactInfo
[
1
]);
if
(
StringUtils
.
isNotEmpty
(
workOrderBO
.
getShopContactInfo
()))
{
String
[]
shopContactInfo
=
workOrderBO
.
getShopContactInfo
().
split
(
"[, ,]"
);
installWorkOrderBO
.
setShopContactor
(
shopContactInfo
[
0
]);
if
(
shopContactInfo
.
length
>
1
)
{
installWorkOrderBO
.
setShopTelephone
(
shopContactInfo
[
1
]);
}
}
String
[]
serviceLinkInfo
=
workOrderBO
.
getServiceLinkInfo
().
split
(
"[, ,]"
);
installWorkOrderBO
.
setInstallLinker
(
serviceLinkInfo
[
0
]);
if
(
serviceLinkInfo
.
length
>
1
)
{
installWorkOrderBO
.
setInstallLinkerPhone
(
serviceLinkInfo
[
1
]);
if
(
StringUtils
.
isNotEmpty
(
workOrderBO
.
getServiceLinkInfo
()))
{
String
[]
serviceLinkInfo
=
workOrderBO
.
getServiceLinkInfo
().
split
(
"[, ,]"
);
installWorkOrderBO
.
setInstallLinker
(
serviceLinkInfo
[
0
]);
if
(
serviceLinkInfo
.
length
>
1
)
{
installWorkOrderBO
.
setInstallLinkerPhone
(
serviceLinkInfo
[
1
]);
}
}
installWorkOrderBO
.
setCreatedBy
(
ShieldContextHolder
.
getUserId
());
R
<
List
<
String
>>
longR
=
workOrderClient
.
create
(
installWorkOrderBO
);
...
...
@@ -326,6 +332,13 @@ public class WorkOrderService {
}
public
void
verify
(
WorkOrderVerifyBO
verifyBO
)
{
verifyBO
.
getDevices
().
forEach
(
deviceItem
->
{
Device
device
=
deviceMapper
.
selectBySn
(
deviceItem
.
getSn
());
if
(
device
!=
null
)
{
deviceItem
.
setWireType
(
device
.
getSource
());
}
});
R
verifyR
=
workOrderClient
.
verify
(
verifyBO
);
if
(
verifyR
.
isSuccess
())
{
log
.
info
(
"验证成功"
);
...
...
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