Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bdbeffd5
authored
Dec 07, 2023
by
huangjinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:创单指定工程师通知bean
1 parent
cc7ef880
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderCreateServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderCreateServiceImpl.java
View file @
bdbeffd
...
...
@@ -266,7 +266,7 @@ public class OrderCreateServiceImpl implements OrderCreateService {
@Override
@Transactional
public
Result
<?>
createOrder
(
OrderDTO
.
OrderCreateRequest
req
)
{
log
.
info
(
"[createOrder]
req: {}"
,
JSONObject
.
toJSONString
(
req
));
log
.
info
(
"[createOrder]
orderId:{}, req: {}"
,
req
.
getOrderId
()
,
JSONObject
.
toJSONString
(
req
));
OrderInfoEntity
entity
=
new
OrderInfoEntity
();
String
orderId
=
req
.
getOrderId
();
if
(
StringUtils
.
isEmpty
(
orderId
))
{
...
...
@@ -428,8 +428,17 @@ public class OrderCreateServiceImpl implements OrderCreateService {
commonService
.
addOrderEvent
(
orderId
,
""
,
req
.
getSource
(),
"API"
,
OrderEventEnum
.
createOrder
.
getEvent
(),
String
.
format
(
OrderEventEnum
.
createOrder
.
getMsg
(),
req
.
getSource
(),
"BEAN"
,
req
.
getOrderId
()),
""
);
if
(
req
.
getIsAppointEngineer
()
==
1
)
{
//回调改约
Boolean
boo
=
orderInfoService
.
rescheduled
(
entity
,
entity
,
false
,
""
,
"PEA"
);
log
.
info
(
"[createOrder] orderId:{}, 指定工程师通知bean结果: {}"
,
entity
.
getOrderId
(),
boo
);
if
(!
boo
)
{
throw
new
BusinessException
(
"服务工单变更结果通知BEAN失败"
);
}
commonService
.
addOrderEvent
(
orderId
,
""
,
req
.
getSource
(),
"PEA"
,
OrderEventEnum
.
reassignment
.
getEvent
(),
String
.
format
(
OrderEventEnum
.
reassignment
.
getMsg
(),
engineerName
+
"-"
+
byTeamId
.
getTeamName
()),
""
);
orderInfoDao
.
save
(
entity
);
}
log
.
info
(
"[createOrder] orderId:{}, 结束"
,
req
.
getOrderId
());
return
Result
.
success
(
null
);
}
...
...
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