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
113bb953
Commit
113bb953
authored
Nov 24, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 取消工单
parent
d94f1a2c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
ChangeFlowBiz.java
...om/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
+5
-2
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
View file @
113bb953
...
...
@@ -530,8 +530,12 @@ public class ChangeFlowBiz {
ChangeRecord
changeRecord
=
getFlowInfo
(
flowId
);
// 检查工单节点
this
.
checkNode
(
changeRecord
.
getFlowNode
(),
ChangeFlowEnum
.
CHANGE_FLOW_EXE
.
getNodeId
());
String
uid
=
RequestLocalBean
.
getUid
();
// todo:检查审核人
String
changeCommander
=
changeRecord
.
getChangeCommander
();
/*if (!uid.equals(changeCommander)) {
throw ExceptionFactory.createBiz(ResponseCode.NO_AUTH, ResponseCode.NO_AUTH.getMsg());
}*/
// 获取工单详情
FlowDataDTO
flowDataDTO
=
this
.
flowDetail
(
flowId
.
toString
());
if
(
flowDataDTO
==
null
)
{
...
...
@@ -541,7 +545,6 @@ public class ChangeFlowBiz {
Map
<
String
,
Object
>
content
=
new
HashMap
<>(
CommonConstants
.
INIT_HASH_MAP_SIZE
);
content
.
put
(
"updateTime"
,
System
.
currentTimeMillis
());
content
.
put
(
CommonConstants
.
FLOW_OPERATION_KEY
,
FlowOperationTypeEnum
.
REFUSE
.
getValue
());
String
uid
=
changeRecord
.
getChangeCommander
();
String
nextNodeId
=
this
.
submitFlow
(
String
.
valueOf
(
flowId
),
flowDataDTO
,
uid
,
ChangeFlowEnum
.
CHANGE_FLOW_EXE
.
getTopoId
(),
JSON
.
toJSONString
(
content
),
false
);
log
.
info
(
"[cancel] flowId:{}, nextNodeId:{}"
,
flowId
,
nextNodeId
);
...
...
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