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
8454ccb2
You need to sign in or sign up before continuing.
Commit
8454ccb2
authored
Dec 08, 2025
by
王志超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 主工单审核阶段,配置默认的审核人员
parent
b9eb55a4
Pipeline
#86653
passed with stages
in 1 minute 28 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
ChangeFlowBiz.java
...om/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
+13
-5
AppConfig.java
...com/netease/mail/yanxuan/change/biz/config/AppConfig.java
+2
-2
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
View file @
8454ccb2
...
...
@@ -713,6 +713,9 @@ public class ChangeFlowBiz {
case
NEW_CHANGE_FLOW_OWNER_APPROVE:
// 部门负责人审批节点:设置下一个审批人为变更管理员
String
changeAdmin
=
appConfig
.
getChangeAdmin
();
if
(
StringUtils
.
isBlank
(
changeAdmin
))
{
log
.
error
(
"[NEW_CHANGE_FLOW_OWNER_APPROVE] 变更管理员未配置,flowId:{}"
,
flowId
);
}
Map
<
String
,
Object
>
ownerApproveParamMap
=
new
HashMap
<>();
ownerApproveParamMap
.
put
(
"type"
,
FlowTransitionType
.
TYPE_APPROVED
);
return
handleMainFlowApprovalSubmit
(
changeFlowSubmitReq
,
flowId
,
flowDataDTO
,
uid
,
changeRecord
,
node
,
content
,
...
...
@@ -731,24 +734,29 @@ public class ChangeFlowBiz {
// 重要变更:走质量部负责人审批
adminApproveParamMap
.
put
(
"type"
,
FlowTransitionType
.
TYPE_APPROVED
);
nextApproverForAdmin
=
appConfig
.
getChangeQualityLeader
();
if
(
StringUtils
.
isBlank
(
nextApproverForAdmin
))
{
log
.
error
(
"[NEW_CHANGE_FLOW_ADMIN_APPROVE] 质量部负责人未配置,flowId:{}"
,
flowId
);
}
nextStatusForAdmin
=
ChangeStatusEnum
.
WAIT_QUALITY_LEADER_APPROVE
;
log
.
info
(
"[NEW_CHANGE_FLOW_ADMIN_APPROVE] 重要变更,需要质量部负责人审批"
);
}
else
{
// 一般变更:跳过质量部负责人审批
// 一般变更:跳过质量部负责人审批
,下一个审批人为变更负责人
adminApproveParamMap
.
put
(
"type"
,
FlowTransitionType
.
TYPE_SKIP_QUALITY_APPROVE
);
nextApproverForAdmin
=
null
;
nextApproverForAdmin
=
changeRecord
.
getChangeCommander
()
;
nextStatusForAdmin
=
ChangeStatusEnum
.
WAIT_EXEC_CHANGE_PLAN
;
log
.
info
(
"[NEW_CHANGE_FLOW_ADMIN_APPROVE] 一般变更,跳过质量部负责人审批
"
);
log
.
info
(
"[NEW_CHANGE_FLOW_ADMIN_APPROVE] 一般变更,跳过质量部负责人审批
,下一个审批人为变更负责人:{}"
,
nextApproverForAdmin
);
}
return
handleMainFlowApprovalSubmit
(
changeFlowSubmitReq
,
flowId
,
flowDataDTO
,
uid
,
changeRecord
,
node
,
content
,
adminApproveParamMap
,
nextApproverForAdmin
,
nextStatusForAdmin
);
case
NEW_CHANGE_FLOW_QUALITY_APPROVE:
// 质量部负责人审批节点:审批通过后流转到执行变更方案
// 质量部负责人审批节点:审批通过后流转到执行变更方案
,下一个审批人为变更负责人
Map
<
String
,
Object
>
qualityApproveParamMap
=
new
HashMap
<>();
qualityApproveParamMap
.
put
(
"type"
,
FlowTransitionType
.
TYPE_APPROVED
);
String
nextApproverForQuality
=
changeRecord
.
getChangeCommander
();
log
.
info
(
"[NEW_CHANGE_FLOW_QUALITY_APPROVE] 质量部负责人审批通过,下一个审批人为变更负责人:{}"
,
nextApproverForQuality
);
return
handleMainFlowApprovalSubmit
(
changeFlowSubmitReq
,
flowId
,
flowDataDTO
,
uid
,
changeRecord
,
node
,
content
,
qualityApproveParamMap
,
n
ull
,
ChangeStatusEnum
.
WAIT_EXEC_CHANGE_PLAN
);
qualityApproveParamMap
,
n
extApproverForQuality
,
ChangeStatusEnum
.
WAIT_EXEC_CHANGE_PLAN
);
case
NEW_CHANGE_FLOW_EXE:
// 执行变更方案节点:等待所有子单完成后自动流转,不允许主动提交
throw
ExceptionFactory
.
createBiz
(
ResponseCode
.
BAD_REQUEST
,
...
...
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/config/AppConfig.java
View file @
8454ccb2
...
...
@@ -99,13 +99,13 @@ public class AppConfig {
/**
* 变更管理员(用于主单审批流程)
*/
@Value
(
"${changeAdmin:}"
)
@Value
(
"${changeAdmin:
wb.xietao@mesg.corp.netease.com
}"
)
private
String
changeAdmin
;
/**
* 质量部负责人(用于主单审批流程)
*/
@Value
(
"${changeQualityLeader:}"
)
@Value
(
"${changeQualityLeader:
wb.xietao@mesg.corp.netease.com
}"
)
private
String
changeQualityLeader
;
/**
...
...
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