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
f7f22054
Commit
f7f22054
authored
Nov 28, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 测试待办
parent
740576ad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
3 deletions
+50
-3
ChangeFlowBiz.java
...om/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
+2
-2
SupplierTodoTaskTypeEnum.java
...yanxuan/change/common/enums/SupplierTodoTaskTypeEnum.java
+1
-1
TestController.java
...se/mail/yanxuan/change/web/controller/TestController.java
+47
-0
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
View file @
f7f22054
...
@@ -191,7 +191,7 @@ public class ChangeFlowBiz {
...
@@ -191,7 +191,7 @@ public class ChangeFlowBiz {
* 创建代办
* 创建代办
* @param entity
* @param entity
*/
*/
p
rivate
void
createSupplierTodoTask
(
ChangeRecord
entity
)
{
p
ublic
void
createSupplierTodoTask
(
ChangeRecord
entity
)
{
String
changeCommander
=
entity
.
getChangeCommander
();
String
changeCommander
=
entity
.
getChangeCommander
();
if
(
StringUtils
.
isNotEmpty
(
changeCommander
))
{
if
(
StringUtils
.
isNotEmpty
(
changeCommander
))
{
String
flowId
=
String
.
valueOf
(
entity
.
getFlowId
());
String
flowId
=
String
.
valueOf
(
entity
.
getFlowId
());
...
@@ -208,7 +208,7 @@ public class ChangeFlowBiz {
...
@@ -208,7 +208,7 @@ public class ChangeFlowBiz {
* 完成代办
* 完成代办
* @param entity
* @param entity
*/
*/
p
rivate
void
finishSupplierTodoTask
(
ChangeRecord
entity
)
{
p
ublic
void
finishSupplierTodoTask
(
ChangeRecord
entity
)
{
String
changeCommander
=
entity
.
getChangeCommander
();
String
changeCommander
=
entity
.
getChangeCommander
();
String
flowId
=
String
.
valueOf
(
entity
.
getFlowId
());
String
flowId
=
String
.
valueOf
(
entity
.
getFlowId
());
log
.
info
(
"[finishSupplierTodoTask] taskFlowId={}, supplierId={}"
,
flowId
,
changeCommander
);
log
.
info
(
"[finishSupplierTodoTask] taskFlowId={}, supplierId={}"
,
flowId
,
changeCommander
);
...
...
yanxuan-qc-change-system-common/src/main/java/com/netease/mail/yanxuan/change/common/enums/SupplierTodoTaskTypeEnum.java
View file @
f7f22054
...
@@ -6,7 +6,7 @@ package com.netease.mail.yanxuan.change.common.enums;
...
@@ -6,7 +6,7 @@ package com.netease.mail.yanxuan.change.common.enums;
* @author dmx
* @author dmx
*/
*/
public
enum
SupplierTodoTaskTypeEnum
{
public
enum
SupplierTodoTaskTypeEnum
{
QC_CHANGE
(
200
,
"变更工单处理"
);
QC_CHANGE
(
101
,
"变更工单处理"
);
SupplierTodoTaskTypeEnum
(
Integer
value
,
String
desc
)
{
SupplierTodoTaskTypeEnum
(
Integer
value
,
String
desc
)
{
this
.
value
=
value
;
this
.
value
=
value
;
...
...
yanxuan-qc-change-system-web/src/main/java/com/netease/mail/yanxuan/change/web/controller/TestController.java
0 → 100644
View file @
f7f22054
/**
* @(#)TestController.java, 2022/11/28.
* <p/>
* Copyright 2022 Netease, Inc. All rights reserved.
* NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package
com
.
netease
.
mail
.
yanxuan
.
change
.
web
.
controller
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.alibaba.fastjson.JSON
;
import
com.netease.mail.yanxuan.change.biz.biz.ChangeFlowBiz
;
import
com.netease.mail.yanxuan.change.common.bean.AjaxResult
;
import
com.netease.mail.yanxuan.change.dal.entity.ChangeRecord
;
import
lombok.extern.slf4j.Slf4j
;
/**
* @Author zcwang
* @Date 2022/11/28
*/
@Slf4j
@RestController
@RequestMapping
(
"/test"
)
public
class
TestController
{
@Autowired
private
ChangeFlowBiz
changeFlowBiz
;
@PostMapping
(
"/createToDo"
)
public
AjaxResult
<
Void
>
createTodoTask
(
ChangeRecord
entity
)
{
log
.
info
(
"[createToDoTask] entity:{}"
,
JSON
.
toJSONString
(
entity
));
changeFlowBiz
.
createSupplierTodoTask
(
entity
);
return
AjaxResult
.
success
();
}
@PostMapping
(
"/finishToDo"
)
public
AjaxResult
<
Void
>
finishTodoTask
(
ChangeRecord
entity
)
{
log
.
info
(
"[createToDoTask] entity:{}"
,
JSON
.
toJSONString
(
entity
));
changeFlowBiz
.
createSupplierTodoTask
(
entity
);
return
AjaxResult
.
success
();
}
}
\ No newline at end of file
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