Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-standard-interfaces
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c32b67d1
authored
Jan 02, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
工单同步接口
1 parent
1a1f7607
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
src/main/java/cn/com/glsx/stdinterface/modules/service/BhgBizService.java
src/main/java/cn/com/glsx/stdinterface/modules/service/WorkOrderService.java
src/main/java/cn/com/glsx/stdinterface/modules/service/BhgBizService.java
View file @
c32b67d
...
@@ -6,6 +6,7 @@ import cn.com.glsx.stdinterface.modules.util.MD5Util;
...
@@ -6,6 +6,7 @@ import cn.com.glsx.stdinterface.modules.util.MD5Util;
import
cn.hutool.json.JSONUtil
;
import
cn.hutool.json.JSONUtil
;
import
com.glsx.plat.common.utils.DateUtils
;
import
com.glsx.plat.common.utils.DateUtils
;
import
com.glsx.plat.common.utils.HttpUtils
;
import
com.glsx.plat.common.utils.HttpUtils
;
import
com.glsx.plat.common.utils.StringUtils
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.scheduling.annotation.Async
;
...
@@ -58,7 +59,7 @@ public class BhgBizService {
...
@@ -58,7 +59,7 @@ public class BhgBizService {
map
.
put
(
"carOwner"
,
woVehicle
.
getLesseeName
()
!=
null
?
woVehicle
.
getLesseeName
().
trim
()
:
"--"
);
map
.
put
(
"carOwner"
,
woVehicle
.
getLesseeName
()
!=
null
?
woVehicle
.
getLesseeName
().
trim
()
:
"--"
);
map
.
put
(
"carOwnerPhone"
,
woVehicle
.
getLesseePhone
()
!=
null
?
woVehicle
.
getLesseePhone
().
trim
()
:
""
);
map
.
put
(
"carOwnerPhone"
,
woVehicle
.
getLesseePhone
()
!=
null
?
woVehicle
.
getLesseePhone
().
trim
()
:
""
);
map
.
put
(
"vinNo"
,
woVehicle
.
getVin
()
!=
null
?
woVehicle
.
getVin
().
trim
()
:
""
);
map
.
put
(
"vinNo"
,
woVehicle
.
getVin
()
!=
null
?
woVehicle
.
getVin
().
trim
()
:
""
);
map
.
put
(
"serviceCode"
,
woVehicle
.
getDeviceCompose
()
!=
null
?
woVehicle
.
getDeviceCompose
().
trim
()
:
"
"
);
map
.
put
(
"serviceCode"
,
StringUtils
.
isNotEmpty
(
woVehicle
.
getDeviceCompose
())
?
"NES"
+
woVehicle
.
getDeviceCompose
().
trim
()
:
"NES000
"
);
map
.
put
(
"address"
,
workOrder
.
getServiceAddress
()
!=
null
?
workOrder
.
getServiceAddress
().
trim
()
:
""
);
map
.
put
(
"address"
,
workOrder
.
getServiceAddress
()
!=
null
?
workOrder
.
getServiceAddress
().
trim
()
:
""
);
map
.
put
(
"expectInstallTime"
,
workOrder
.
getServiceTime
()
!=
null
?
DateUtils
.
format
(
workOrder
.
getServiceTime
())
:
""
);
map
.
put
(
"expectInstallTime"
,
workOrder
.
getServiceTime
()
!=
null
?
DateUtils
.
format
(
workOrder
.
getServiceTime
())
:
""
);
map
.
put
(
"carType"
,
woVehicle
.
getTypeName
()
!=
null
?
woVehicle
.
getTypeName
().
trim
()
:
"车型未知"
);
map
.
put
(
"carType"
,
woVehicle
.
getTypeName
()
!=
null
?
woVehicle
.
getTypeName
().
trim
()
:
"车型未知"
);
...
...
src/main/java/cn/com/glsx/stdinterface/modules/service/WorkOrderService.java
View file @
c32b67d
...
@@ -354,7 +354,7 @@ public class WorkOrderService {
...
@@ -354,7 +354,7 @@ public class WorkOrderService {
//如果是自平台,无需转换
//如果是自平台,无需转换
if
(
WorkOrderSourceEnum
.
NE_SHIELD
.
getCode
().
equals
(
orderReq
.
getOrderSource
()))
{
if
(
WorkOrderSourceEnum
.
NE_SHIELD
.
getCode
().
equals
(
orderReq
.
getOrderSource
()))
{
return
"NES"
+
woVehicle
.
getDeviceCompose
();
return
woVehicle
.
getDeviceCompose
();
}
}
if
(
StringUtils
.
isNotBlank
(
deviceCompose
)
&&
deviceCompose
.
endsWith
(
";"
))
{
if
(
StringUtils
.
isNotBlank
(
deviceCompose
)
&&
deviceCompose
.
endsWith
(
";"
))
{
...
@@ -405,7 +405,7 @@ public class WorkOrderService {
...
@@ -405,7 +405,7 @@ public class WorkOrderService {
}
}
private
String
getBhgServiceCode
(
String
orderSource
,
String
deviceSign
)
{
private
String
getBhgServiceCode
(
String
orderSource
,
String
deviceSign
)
{
String
serviceCode
=
"
NES
"
;
String
serviceCode
=
""
;
if
(
WorkOrderSourceEnum
.
ZLGJ
.
getCode
().
equals
(
orderSource
))
{
if
(
WorkOrderSourceEnum
.
ZLGJ
.
getCode
().
equals
(
orderSource
))
{
// 保活干那边仲利服务项目目前有这些,但是接口单只有008,009,010
// 保活干那边仲利服务项目目前有这些,但是接口单只有008,009,010
// 有线 + 无线设备(仲利) 008
// 有线 + 无线设备(仲利) 008
...
...
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