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
20ac91e4
Commit
20ac91e4
authored
Nov 22, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 创建工单日志
parent
b40ae024
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
ChangeFlowBiz.java
...om/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
+3
-3
AppConfig.java
...com/netease/mail/yanxuan/change/biz/config/AppConfig.java
+3
-2
ChangeFlowController.java
...l/yanxuan/change/web/controller/ChangeFlowController.java
+0
-1
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
View file @
20ac91e4
...
@@ -102,7 +102,7 @@ public class ChangeFlowBiz {
...
@@ -102,7 +102,7 @@ public class ChangeFlowBiz {
public
String
createAndSubmit
(
ChangeFlowCreateReq
changeFlowCreateReq
)
{
public
String
createAndSubmit
(
ChangeFlowCreateReq
changeFlowCreateReq
)
{
String
uid
=
AdminUserHolder
.
getUserName
();
String
uid
=
AdminUserHolder
.
getUserName
();
// String userName = RequestLocalBean.getName(
);
log
.
info
(
"[createAndSubmit] createAndSubmit req={}, uid:{}"
,
JSON
.
toJSONString
(
changeFlowCreateReq
),
uid
);
// 校验变更主体
// 校验变更主体
checkSubject
(
changeFlowCreateReq
);
checkSubject
(
changeFlowCreateReq
);
// 检验是否需要资料
// 检验是否需要资料
...
@@ -144,7 +144,7 @@ public class ChangeFlowBiz {
...
@@ -144,7 +144,7 @@ public class ChangeFlowBiz {
// todo:判断发起人和审核人
// todo:判断发起人和审核人
// 如果发起人=变更负责人
// 如果发起人=变更负责人
if
(
appConfig
.
getTest
Switch
(
))
{
if
(
appConfig
.
getTest
Email
().
equals
(
uid
))
{
String
nextNodeId
=
submitFlow
(
flowId
,
flowDataDTO
,
uid
,
String
nextNodeId
=
submitFlow
(
flowId
,
flowDataDTO
,
uid
,
ChangeFlowEnum
.
CHANGE_FLOW_START
.
getTopoId
(),
JSON
.
toJSONString
(
content
));
ChangeFlowEnum
.
CHANGE_FLOW_START
.
getTopoId
(),
JSON
.
toJSONString
(
content
));
if
(
null
==
nextNodeId
)
{
if
(
null
==
nextNodeId
)
{
...
@@ -153,7 +153,7 @@ public class ChangeFlowBiz {
...
@@ -153,7 +153,7 @@ public class ChangeFlowBiz {
// 更新节点id
// 更新节点id
changeRecord
.
setFlowNode
(
nodeId
);
changeRecord
.
setFlowNode
(
nodeId
);
changeFlowService
.
updateRecord
(
changeRecord
);
changeFlowService
.
updateRecord
(
changeRecord
);
return
nextNode
Id
;
return
flow
Id
;
}
}
return
flowId
;
return
flowId
;
}
}
...
...
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/config/AppConfig.java
View file @
20ac91e4
...
@@ -30,6 +30,6 @@ public class AppConfig {
...
@@ -30,6 +30,6 @@ public class AppConfig {
@Value
(
"${changeExecLimit:20}"
)
@Value
(
"${changeExecLimit:20}"
)
private
Integer
changeExecLimit
;
private
Integer
changeExecLimit
;
@Value
(
"${test
Switch:true
}"
)
@Value
(
"${test
Email:A@163.com
}"
)
private
Boolean
testSwitch
;
private
String
testEmail
;
}
}
\ No newline at end of file
yanxuan-qc-change-system-web/src/main/java/com/netease/mail/yanxuan/change/web/controller/ChangeFlowController.java
View file @
20ac91e4
...
@@ -105,7 +105,6 @@ public class ChangeFlowController {
...
@@ -105,7 +105,6 @@ public class ChangeFlowController {
*/
*/
@PostMapping
(
"/create"
)
@PostMapping
(
"/create"
)
public
AjaxResult
<
String
>
createAndSubmit
(
@RequestBody
@Valid
ChangeFlowCreateReq
changeFlowCreateReq
)
{
public
AjaxResult
<
String
>
createAndSubmit
(
@RequestBody
@Valid
ChangeFlowCreateReq
changeFlowCreateReq
)
{
log
.
info
(
"[createAndSubmit] createAndSubmit req={}"
,
JSON
.
toJSONString
(
changeFlowCreateReq
));
return
AjaxResult
.
success
(
changeFlowBiz
.
createAndSubmit
(
changeFlowCreateReq
));
return
AjaxResult
.
success
(
changeFlowBiz
.
createAndSubmit
(
changeFlowCreateReq
));
}
}
...
...
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