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 18d2c3ce
authored
Apr 13, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
激活设备有效位置验证规则调整
1 parent
ad14bbef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
src/main/java/cn/com/glsx/stdinterface/modules/service/WorkOrderService.java
src/main/java/cn/com/glsx/stdinterface/modules/service/WorkOrderService.java
View file @
18d2c3c
...
@@ -886,11 +886,24 @@ public class WorkOrderService {
...
@@ -886,11 +886,24 @@ public class WorkOrderService {
});
});
//验证位置点
//验证位置点
DeviceLocationRequest
deviceLocationRequest
=
new
DeviceLocationRequest
();
DeviceLocationRequest
locationRequest
=
new
DeviceLocationRequest
();
deviceLocationRequest
.
setVerifyTimeFlag
(
true
);
locationRequest
.
setVerifyTimeFlag
(
true
);
deviceLocationRequest
.
setBsBackfillGps
(
true
);
locationRequest
.
setBsBackfillGps
(
true
);
deviceLocationRequest
.
setDevices
(
devices
);
R
<
List
<
GpsBsData
>>
listR
=
gpsBsFeignService
.
locationCheck
(
deviceLocationRequest
);
// V1.6.0需求
// 包活干请求新E盾平台,激活车辆档案时效,更新为3小时
// 新E盾审核工单时效,更新为24小时。
// 时效开始时间,以设备最新定位时间为准。
if
(
isApiCall
)
{
locationRequest
.
setGpsValidMinute
(
3
*
60
);
locationRequest
.
setBsValidMinute
(
24
*
60
);
}
else
{
locationRequest
.
setGpsValidMinute
(
24
*
60
);
locationRequest
.
setBsValidMinute
(
24
*
60
);
}
locationRequest
.
setDevices
(
devices
);
R
<
List
<
GpsBsData
>>
listR
=
gpsBsFeignService
.
locationCheck
(
locationRequest
);
log
.
info
(
"工单{}位置点验证结果:{}"
,
workOrder
.
getOrderNo
(),
JSONUtil
.
toJsonStr
(
listR
));
log
.
info
(
"工单{}位置点验证结果:{}"
,
workOrder
.
getOrderNo
(),
JSONUtil
.
toJsonStr
(
listR
));
if
(!
listR
.
isSuccess
())
{
if
(!
listR
.
isSuccess
())
{
throw
new
StdInterfaceException
(
String
.
valueOf
(
listR
.
getCode
()),
listR
.
getMessage
());
throw
new
StdInterfaceException
(
String
.
valueOf
(
listR
.
getCode
()),
listR
.
getMessage
());
...
@@ -1104,6 +1117,7 @@ public class WorkOrderService {
...
@@ -1104,6 +1117,7 @@ public class WorkOrderService {
/**
/**
* 激活和审核工单时 更新车架号和工单号
* 激活和审核工单时 更新车架号和工单号
*
* @param workOrder
* @param workOrder
* @param orderReq
* @param orderReq
* @return
* @return
...
@@ -1111,7 +1125,7 @@ public class WorkOrderService {
...
@@ -1111,7 +1125,7 @@ public class WorkOrderService {
public
Boolean
updateWorkOrderVin
(
WorkOrder
workOrder
,
WorkOrderActivateBO
orderReq
)
{
public
Boolean
updateWorkOrderVin
(
WorkOrder
workOrder
,
WorkOrderActivateBO
orderReq
)
{
boolean
updateFlag
=
false
;
boolean
updateFlag
=
false
;
WorkOrderVehicle
workOrderVehicle
=
workOrderVehicleMapper
.
selectOneByOrderId
(
workOrder
.
getId
());
WorkOrderVehicle
workOrderVehicle
=
workOrderVehicleMapper
.
selectOneByOrderId
(
workOrder
.
getId
());
if
(
workOrderVehicle
==
null
)
{
if
(
workOrderVehicle
==
null
)
{
return
updateFlag
;
return
updateFlag
;
}
}
...
@@ -1138,11 +1152,11 @@ public class WorkOrderService {
...
@@ -1138,11 +1152,11 @@ public class WorkOrderService {
private
Boolean
validUpdateVehicle
(
Long
id
,
String
vin
)
{
private
Boolean
validUpdateVehicle
(
Long
id
,
String
vin
)
{
Boolean
updateRes
=
false
;
Boolean
updateRes
=
false
;
if
(
id
==
null
||
StringUtils
.
isBlank
(
vin
))
{
if
(
id
==
null
||
StringUtils
.
isBlank
(
vin
))
{
return
updateRes
;
return
updateRes
;
}
}
Vehicle
vehicle
=
vehicleService
.
getVehicleInfoByWorkOrderIdAndVin
(
id
,
vin
);
Vehicle
vehicle
=
vehicleService
.
getVehicleInfoByWorkOrderIdAndVin
(
id
,
vin
);
updateRes
=
(
vehicle
==
null
)?
true
:
false
;
updateRes
=
(
vehicle
==
null
)
?
true
:
false
;
return
updateRes
;
return
updateRes
;
}
}
...
...
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