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
d4d87971
Commit
d4d87971
authored
Nov 17, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbug: 工单提交
parent
397f29e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
ChangeFlowBiz.java
...om/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
+3
-1
FlowRpcService.java
.../mail/yanxuan/change/integration/flow/FlowRpcService.java
+8
-1
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
View file @
d4d87971
...
@@ -127,6 +127,7 @@ public class ChangeFlowBiz {
...
@@ -127,6 +127,7 @@ public class ChangeFlowBiz {
}
}
NodeSubmitReqDTO
nodeSubmitReqDTO
=
new
NodeSubmitReqDTO
();
NodeSubmitReqDTO
nodeSubmitReqDTO
=
new
NodeSubmitReqDTO
();
nodeSubmitReqDTO
.
setFlowId
(
flowId
);
nodeSubmitReqDTO
.
setNodeId
(
flowDataDTO
.
getFlowMeta
().
getCurrNodeDataList
().
get
(
0
).
getNodeId
());
nodeSubmitReqDTO
.
setNodeId
(
flowDataDTO
.
getFlowMeta
().
getCurrNodeDataList
().
get
(
0
).
getNodeId
());
nodeSubmitReqDTO
.
setUid
(
flowCreateReqDTO
.
getUid
());
nodeSubmitReqDTO
.
setUid
(
flowCreateReqDTO
.
getUid
());
nodeSubmitReqDTO
.
setUserName
(
flowCreateReqDTO
.
getUserName
());
nodeSubmitReqDTO
.
setUserName
(
flowCreateReqDTO
.
getUserName
());
...
@@ -134,9 +135,10 @@ public class ChangeFlowBiz {
...
@@ -134,9 +135,10 @@ public class ChangeFlowBiz {
nodeSubmitReqDTO
.
setTopoId
(
flowCreateReqDTO
.
getTopoId
());
nodeSubmitReqDTO
.
setTopoId
(
flowCreateReqDTO
.
getTopoId
());
nodeSubmitReqDTO
.
setContent
(
flowCreateReqDTO
.
getContent
());
nodeSubmitReqDTO
.
setContent
(
flowCreateReqDTO
.
getContent
());
nodeSubmitReqDTO
.
setOperateResult
(
FlowxOperationEnum
.
SUBMIT
.
getName
());
nodeSubmitReqDTO
.
setOperateResult
(
FlowxOperationEnum
.
SUBMIT
.
getName
());
nodeSubmitReqDTO
.
setCreateTime
(
System
.
currentTimeMillis
());
List
<
String
>
nextNodeIdList
;
List
<
String
>
nextNodeIdList
;
// 提交工单
// 提交工单
AjaxResponse
<
List
<
String
>>
submitResponse
=
flowRpcService
.
submit
(
CommonConstants
.
FLOWX_PRODUCT
,
flowId
);
AjaxResponse
<
List
<
String
>>
submitResponse
=
flowRpcService
.
submit
(
CommonConstants
.
FLOWX_PRODUCT
,
nodeSubmitReqDTO
);
if
(
ResponseCodeEnum
.
SUCCESS
.
getCode
()
==
flowDetailResponse
.
getCode
())
{
if
(
ResponseCodeEnum
.
SUCCESS
.
getCode
()
==
flowDetailResponse
.
getCode
())
{
nextNodeIdList
=
submitResponse
.
getData
();
nextNodeIdList
=
submitResponse
.
getData
();
log
.
info
(
"[createAndSubmitFlow] nextNodeIdList={}"
,
JSON
.
toJSONString
(
nextNodeIdList
));
log
.
info
(
"[createAndSubmitFlow] nextNodeIdList={}"
,
JSON
.
toJSONString
(
nextNodeIdList
));
...
...
yanxuan-qc-change-system-integration/src/main/java/com/netease/mail/yanxuan/change/integration/flow/FlowRpcService.java
View file @
d4d87971
...
@@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.PostMapping;
...
@@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.PostMapping;
import
com.netease.yanxuan.flowx.sdk.meta.controller.communal.AjaxResponse
;
import
com.netease.yanxuan.flowx.sdk.meta.controller.communal.AjaxResponse
;
import
com.netease.yanxuan.flowx.sdk.meta.dto.base.FlowDataDTO
;
import
com.netease.yanxuan.flowx.sdk.meta.dto.base.FlowDataDTO
;
import
com.netease.yanxuan.flowx.sdk.meta.dto.flow.FlowCreateReqDTO
;
import
com.netease.yanxuan.flowx.sdk.meta.dto.flow.FlowCreateReqDTO
;
import
com.netease.yanxuan.flowx.sdk.meta.dto.flow.NodeSubmitReqDTO
;
import
com.netease.yanxuan.missa.client.annotation.MissaClient
;
import
com.netease.yanxuan.missa.client.annotation.MissaClient
;
/**
/**
...
@@ -41,6 +42,12 @@ public interface FlowRpcService {
...
@@ -41,6 +42,12 @@ public interface FlowRpcService {
AjaxResponse
<
FlowDataDTO
>
getDetail
(
@PathVariable
(
"product"
)
String
flowxProduct
,
AjaxResponse
<
FlowDataDTO
>
getDetail
(
@PathVariable
(
"product"
)
String
flowxProduct
,
@PathVariable
(
"flowId"
)
String
flowId
);
@PathVariable
(
"flowId"
)
String
flowId
);
/**
* 工单提交
* @param flowxProduct
* @param nodeSubmitReqDTO
* @return
*/
@PostMapping
(
value
=
"/{product}/workOrderFlow/v1/submit"
)
@PostMapping
(
value
=
"/{product}/workOrderFlow/v1/submit"
)
AjaxResponse
<
List
<
String
>>
submit
(
@PathVariable
(
"product"
)
String
flowxProduct
,
String
flowId
);
AjaxResponse
<
List
<
String
>>
submit
(
@PathVariable
(
"product"
)
String
flowxProduct
,
NodeSubmitReqDTO
nodeSubmitReqDTO
);
}
}
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