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
yx-qc-change-flow
yanxuan-qc-change-system
Commits
e2a37b73
Commit
e2a37b73
authored
Nov 20, 2025
by
王志超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 工单提交使用topo平台实际的节点数据校验
parent
07cf6c34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
ChangeFlowBiz.java
...om/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
+12
-8
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
View file @
e2a37b73
...
@@ -574,20 +574,24 @@ public class ChangeFlowBiz {
...
@@ -574,20 +574,24 @@ public class ChangeFlowBiz {
Long
flowId
=
changeFlowSubmitReq
.
getFlowId
();
Long
flowId
=
changeFlowSubmitReq
.
getFlowId
();
// 查询工单有效性
// 查询工单有效性
ChangeRecord
changeRecord
=
this
.
getFlowInfo
(
flowId
);
ChangeRecord
changeRecord
=
this
.
getFlowInfo
(
flowId
);
// 检查工单节点
this
.
checkNode
(
changeRecord
.
getFlowNode
(),
Collections
.
singletonList
(
changeFlowSubmitReq
.
getCurrentNodeId
()));
String
uid
=
RequestLocalBean
.
getUid
();
String
uid
=
RequestLocalBean
.
getUid
();
String
changeCommander
=
changeRecord
.
getChangeCommander
();
// 历史工单负责人建单时固定,新流程有不同的节点处理人
if
(!
uid
.
equals
(
changeCommander
))
{
//String changeCommander = changeRecord.getChangeCommander();
throw
ExceptionFactory
.
createBiz
(
ResponseCode
.
NO_AUTH
,
ResponseCode
.
NO_AUTH
.
getMsg
());
//if (!uid.equals(changeCommander)) {
}
// throw ExceptionFactory.createBiz(ResponseCode.NO_AUTH, ResponseCode.NO_AUTH.getMsg());
// 获取工单详情
//}
// 获取工单详情(topo实际节点信息)
FlowDataDTO
flowDataDTO
=
flowService
.
flowDetail
(
flowId
.
toString
());
FlowDataDTO
flowDataDTO
=
flowService
.
flowDetail
(
flowId
.
toString
());
if
(
flowDataDTO
==
null
)
{
if
(
flowDataDTO
==
null
)
{
throw
ExceptionFactory
.
createBiz
(
ResponseCode
.
DETAIL_FLOW_ERROR
,
"工单查询错误,不存在"
);
throw
ExceptionFactory
.
createBiz
(
ResponseCode
.
DETAIL_FLOW_ERROR
,
"工单查询错误,不存在"
);
}
}
// 使用topo实际节点信息进行节点检查
String
actualNodeId
=
flowDataDTO
.
getFlowMeta
().
getCurrNodeDataList
().
get
(
0
).
getNodeId
();
if
(!
actualNodeId
.
equals
(
changeFlowSubmitReq
.
getCurrentNodeId
()))
{
throw
ExceptionFactory
.
createBiz
(
ResponseCode
.
NODE_ERROR
,
"工单已流转至其他节点"
);
}
return
checkUpdateAndSubmit
(
flowId
,
flowDataDTO
,
uid
,
changeRecord
,
changeRecord
.
getFlowNode
()
,
changeFlowSubmitReq
);
return
checkUpdateAndSubmit
(
flowId
,
flowDataDTO
,
uid
,
changeRecord
,
actualNodeId
,
changeFlowSubmitReq
);
}
}
private
String
checkUpdateAndSubmit
(
Long
flowId
,
FlowDataDTO
flowDataDTO
,
String
uid
,
ChangeRecord
changeRecord
,
private
String
checkUpdateAndSubmit
(
Long
flowId
,
FlowDataDTO
flowDataDTO
,
String
uid
,
ChangeRecord
changeRecord
,
...
...
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