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
a678e98a
Commit
a678e98a
authored
Dec 04, 2025
by
王志超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 子工单不在审核部分,自动跳过审核
parent
2266f77a
Pipeline
#86533
passed with stages
in 1 minute 38 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ChangeSubFlowBiz.java
...netease/mail/yanxuan/change/biz/biz/ChangeSubFlowBiz.java
+6
-6
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/biz/ChangeSubFlowBiz.java
View file @
a678e98a
...
@@ -225,14 +225,14 @@ public class ChangeSubFlowBiz {
...
@@ -225,14 +225,14 @@ public class ChangeSubFlowBiz {
String
nextNodeId
=
flowService
.
submitFlow
(
subFlowId
,
flowDataDTO
,
uid
,
String
nextNodeId
=
flowService
.
submitFlow
(
subFlowId
,
flowDataDTO
,
uid
,
ChangeFlowEnum
.
CHANGE_SUB_FLOW
.
getTopoId
(),
JSON
.
toJSONString
(
content
),
true
,
ChangeFlowEnum
.
CHANGE_SUB_FLOW
.
getTopoId
(),
JSON
.
toJSONString
(
content
),
true
,
FlowxOperationEnum
.
SUBMIT
.
getName
(),
"提交工单"
,
subFlowRecord
.
getCreateTime
());
FlowxOperationEnum
.
SUBMIT
.
getName
(),
"提交工单"
,
subFlowRecord
.
getCreateTime
());
// 更新行动工单节点ID
// 检查是否需要审批
if
(
needApprove
(
expectedDepartment
))
{
// 需要审批:设置上级领导为审批人,停留在审批节点
subFlowRecord
.
setSubFlowNode
(
nextNodeId
);
subFlowRecord
.
setSubFlowNode
(
nextNodeId
);
subFlowRecord
.
setStatus
(
ChangeSubFlowStatusEnum
.
WAIT_APPROVE_ACTION_PLAN
.
getStatus
());
subFlowRecord
.
setStatus
(
ChangeSubFlowStatusEnum
.
WAIT_APPROVE_ACTION_PLAN
.
getStatus
());
subFlowRecord
.
setUpdateTime
(
DateUtils
.
getCurrentTime
());
subFlowRecord
.
setUpdateTime
(
DateUtils
.
getCurrentTime
());
// 检查是否需要审批
if
(
needApprove
(
expectedDepartment
))
{
// 需要审批:设置上级领导为审批人
String
execUserEmail
=
subFlowRecord
.
getChangeExecUserEmail
();
String
execUserEmail
=
subFlowRecord
.
getChangeExecUserEmail
();
if
(
StringUtils
.
isBlank
(
execUserEmail
))
{
if
(
StringUtils
.
isBlank
(
execUserEmail
))
{
throw
ExceptionFactory
.
createBiz
(
ResponseCode
.
BAD_REQUEST
,
"行动人邮箱不能为空"
);
throw
ExceptionFactory
.
createBiz
(
ResponseCode
.
BAD_REQUEST
,
"行动人邮箱不能为空"
);
...
@@ -249,8 +249,7 @@ public class ChangeSubFlowBiz {
...
@@ -249,8 +249,7 @@ public class ChangeSubFlowBiz {
log
.
info
(
"[checkUpdateAndSubmit] 子单流转完成 <<< subFlowId:{}, 原节点:{}-{}, 新节点:{}-审批行动方案"
,
log
.
info
(
"[checkUpdateAndSubmit] 子单流转完成 <<< subFlowId:{}, 原节点:{}-{}, 新节点:{}-审批行动方案"
,
subFlowId
,
oldNodeId
,
oldNodeName
,
nextNodeId
);
subFlowId
,
oldNodeId
,
oldNodeName
,
nextNodeId
);
return
nextNodeId
;
return
nextNodeId
;
}
}
else
{
// 不需要审批,自动提交到下一节点(审批人保持为行动人自己)
// 不需要审批,自动提交到下一节点(审批人保持为行动人自己)
log
.
info
(
"[CHANGE_SUB_FLOW_START] 部门[{}]不需要审批,自动跳过审批"
,
expectedDepartment
);
log
.
info
(
"[CHANGE_SUB_FLOW_START] 部门[{}]不需要审批,自动跳过审批"
,
expectedDepartment
);
String
autoNextNodeId
=
flowService
.
submitFlow
(
subFlowId
,
flowDataDTO
,
uid
,
String
autoNextNodeId
=
flowService
.
submitFlow
(
subFlowId
,
flowDataDTO
,
uid
,
...
@@ -264,6 +263,7 @@ public class ChangeSubFlowBiz {
...
@@ -264,6 +263,7 @@ public class ChangeSubFlowBiz {
log
.
info
(
"[checkUpdateAndSubmit] 子单流转完成 <<< subFlowId:{}, 原节点:{}-{}, 新节点:{}-审批变更方案 (自动跳过审批)"
,
log
.
info
(
"[checkUpdateAndSubmit] 子单流转完成 <<< subFlowId:{}, 原节点:{}-{}, 新节点:{}-审批变更方案 (自动跳过审批)"
,
subFlowId
,
oldNodeId
,
oldNodeName
,
autoNextNodeId
);
subFlowId
,
oldNodeId
,
oldNodeName
,
autoNextNodeId
);
return
autoNextNodeId
;
return
autoNextNodeId
;
}
case
CHANGE_SUB_FLOW_SUBMIT:
case
CHANGE_SUB_FLOW_SUBMIT:
// 审批行动方案节点
// 审批行动方案节点
...
...
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