Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-qc-change-system
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
胡园园
yanxuan-qc-change-system
Commits
be6931ff
Commit
be6931ff
authored
Nov 17, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 日志修改
parent
c144fe8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
ChangeFlowBiz.java
...om/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
+5
-3
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
View file @
be6931ff
...
...
@@ -101,8 +101,9 @@ public class ChangeFlowBiz {
// 保存工单数据
ChangeRecord
changeRecord
=
buildRecord
(
flowId
,
nodeId
,
changeFlowCreateReq
);
changeFlowService
.
saveRecord
(
changeRecord
);
Integer
occLock
=
flowDataDTO
.
getOccLock
();
// 如果发起人=变更负责人
return
submitFlow
(
flowId
,
nodeId
,
flowCreateReqDTO
);
return
submitFlow
(
flowId
,
nodeId
,
occLock
,
flowCreateReqDTO
);
}
private
FlowDataDTO
detailFlow
(
String
flowId
)
{
...
...
@@ -130,7 +131,7 @@ public class ChangeFlowBiz {
return
flowCreateReqDTO
;
}
private
List
<
String
>
submitFlow
(
String
flowId
,
String
nodeId
,
FlowCreateReqDTO
flowCreateReqDTO
)
{
private
List
<
String
>
submitFlow
(
String
flowId
,
String
nodeId
,
Integer
occLock
,
FlowCreateReqDTO
flowCreateReqDTO
)
{
NodeSubmitReqDTO
nodeSubmitReqDTO
=
new
NodeSubmitReqDTO
();
nodeSubmitReqDTO
.
setFlowId
(
flowId
);
nodeSubmitReqDTO
.
setNodeId
(
nodeId
);
...
...
@@ -142,6 +143,7 @@ public class ChangeFlowBiz {
nodeSubmitReqDTO
.
setOperateResult
(
FlowxOperationEnum
.
SUBMIT
.
getName
());
nodeSubmitReqDTO
.
setCreateTime
(
System
.
currentTimeMillis
());
nodeSubmitReqDTO
.
setApproved
(
true
);
nodeSubmitReqDTO
.
setOccLock
(
occLock
+
1
);
List
<
String
>
nextNodeIdList
;
// 提交工单
AjaxResponse
<
List
<
String
>>
submitResponse
=
flowRpcService
.
submit
(
CommonConstants
.
FLOWX_PRODUCT
,
nodeSubmitReqDTO
);
...
...
@@ -149,7 +151,7 @@ public class ChangeFlowBiz {
nextNodeIdList
=
submitResponse
.
getData
();
log
.
info
(
"[submitFlow] nextNodeIdList={}"
,
JSON
.
toJSONString
(
nextNodeIdList
));
}
else
{
log
.
error
(
"[submitFlow] submit flow failed, query={}, errMsg={}"
,
JSON
.
toJSONString
(
flowId
),
log
.
error
(
"[submitFlow] submit flow failed, query={}, errMsg={}"
,
JSON
.
toJSONString
(
nodeSubmitReqDTO
),
JSON
.
toJSONString
(
submitResponse
));
throw
ExceptionFactory
.
createBiz
(
ResponseCode
.
SUBMIT_FLOW_ERROR
,
submitResponse
.
getErrorMsg
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment