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 dc5ce4a7
authored
Jan 05, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
工单标准接口
1 parent
e88b1719
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 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 @
dc5ce4a
...
@@ -408,7 +408,7 @@ public class WorkOrderService {
...
@@ -408,7 +408,7 @@ public class WorkOrderService {
public
void
checkInstallOrder
(
InstallWorkOrderBO
orderReq
)
{
public
void
checkInstallOrder
(
InstallWorkOrderBO
orderReq
)
{
List
<
WorkOrder
>
workOrders
=
workOrderMapper
.
selectPartnerWorkOrdersByPartnerOrderNo
(
orderReq
.
getOrderSource
(),
BizServiceTypeEnum
.
INSTALL
.
getType
(),
orderReq
.
getWorkOrderNo
());
List
<
WorkOrder
>
workOrders
=
workOrderMapper
.
selectPartnerWorkOrdersByPartnerOrderNo
(
orderReq
.
getOrderSource
(),
BizServiceTypeEnum
.
INSTALL
.
getType
(),
orderReq
.
getWorkOrderNo
());
if
(
CollectionUtils
.
isNotEmpty
(
workOrders
))
{
if
(
CollectionUtils
.
isNotEmpty
(
workOrders
))
{
throw
new
StdInterfaceException
(
"656564"
,
String
.
format
(
"工单%s已存在"
,
orderReq
.
getWorkOrderNo
()));
throw
new
StdInterfaceException
(
"656564"
,
String
.
format
(
"
相同业务
工单%s已存在"
,
orderReq
.
getWorkOrderNo
()));
}
}
// TODO: 2022/1/4 车架号查询相同业务是否已经存在
// TODO: 2022/1/4 车架号查询相同业务是否已经存在
}
}
...
@@ -475,7 +475,7 @@ public class WorkOrderService {
...
@@ -475,7 +475,7 @@ public class WorkOrderService {
}
}
workOrder
.
setUpdatedDate
(
now
);
workOrder
.
setUpdatedDate
(
now
);
log
.
info
(
"工单主体信息:{}"
,
JSONUtil
.
toJsonStr
(
workOrder
));
log
.
info
(
"工单主体信息:{}"
,
JSONUtil
.
toJsonStr
(
workOrder
));
workOrderMapper
.
updateByPrimaryKey
Selective
(
workOrder
);
workOrderMapper
.
updateByPrimaryKey
(
workOrder
);
//删除工单车辆
//删除工单车辆
// workOrderVehicleMapper.logicDeleteByOrderId(workOrder.getId());
// workOrderVehicleMapper.logicDeleteByOrderId(workOrder.getId());
...
@@ -493,7 +493,7 @@ public class WorkOrderService {
...
@@ -493,7 +493,7 @@ public class WorkOrderService {
woVehicle
.
setUpdatedDate
(
now
);
woVehicle
.
setUpdatedDate
(
now
);
woVehicle
.
setUpdatedBy
(
workOrder
.
getUpdatedBy
());
woVehicle
.
setUpdatedBy
(
workOrder
.
getUpdatedBy
());
log
.
info
(
"工单车辆信息:{}"
,
JSONUtil
.
toJsonStr
(
woVehicle
));
log
.
info
(
"工单车辆信息:{}"
,
JSONUtil
.
toJsonStr
(
woVehicle
));
workOrderVehicleMapper
.
updateByPrimaryKey
Selective
(
woVehicle
);
workOrderVehicleMapper
.
updateByPrimaryKey
(
woVehicle
);
}
}
// 2021/12/6 同步到包活干
// 2021/12/6 同步到包活干
...
...
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