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
79cbb425
Commit
79cbb425
authored
Nov 17, 2022
by
jx-art
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/feature-changeFlow-221110' into feature-changeFlow-221110
parents
1cd9d79c
c6e60ed9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
196 additions
and
11 deletions
+196
-11
ChangeFlowBiz.java
...om/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
+0
-0
ChangeFlowService.java
...se/mail/yanxuan/change/biz/service/ChangeFlowService.java
+2
-1
ChangeFlowServiceImpl.java
...anxuan/change/biz/service/impl/ChangeFlowServiceImpl.java
+3
-2
ChangeFlowEnum.java
...ease/mail/yanxuan/change/common/enums/ChangeFlowEnum.java
+6
-5
FlowRpcService.java
.../mail/yanxuan/change/integration/flow/FlowRpcService.java
+10
-2
FlowxSubmitDTO.java
.../mail/yanxuan/change/integration/flow/FlowxSubmitDTO.java
+172
-0
ChangeFlowController.java
...l/yanxuan/change/web/controller/ChangeFlowController.java
+3
-1
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
View file @
79cbb425
This diff is collapsed.
Click to expand it.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/ChangeFlowService.java
View file @
79cbb425
...
@@ -22,5 +22,5 @@ public interface ChangeFlowService {
...
@@ -22,5 +22,5 @@ public interface ChangeFlowService {
*/
*/
TitleConfig
getTitleConfig
();
TitleConfig
getTitleConfig
();
Integer
saveRecord
(
ChangeRecord
changeRecord
);
Boolean
saveRecord
(
ChangeRecord
changeRecord
);
}
}
\ No newline at end of file
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/impl/ChangeFlowServiceImpl.java
View file @
79cbb425
...
@@ -35,7 +35,7 @@ public class ChangeFlowServiceImpl implements ChangeFlowService {
...
@@ -35,7 +35,7 @@ public class ChangeFlowServiceImpl implements ChangeFlowService {
}
}
@Override
@Override
public
Integer
saveRecord
(
ChangeRecord
changeRecord
)
{
public
Boolean
saveRecord
(
ChangeRecord
changeRecord
)
{
return
changeRecordMapper
.
insertSelective
(
changeRecord
);
return
changeRecordMapper
.
insertSelective
(
changeRecord
)
>
0
;
}
}
}
}
\ No newline at end of file
yanxuan-qc-change-system-common/src/main/java/com/netease/mail/yanxuan/change/common/enums/ChangeFlowEnum.java
View file @
79cbb425
...
@@ -14,11 +14,12 @@ import lombok.Getter;
...
@@ -14,11 +14,12 @@ import lombok.Getter;
*/
*/
public
enum
ChangeFlowEnum
{
public
enum
ChangeFlowEnum
{
CHANGE_FLOW_START
(
"79560500"
,
"开始节点"
,
"qc-change-flow"
),
CHANGE_FLOW_START
(
"79560500"
,
"开始节点"
,
"yanxuan-qc-change-flow"
),
CHANGE_FLOW_SUBMIT
(
"79560501"
,
"变更申请提交"
,
"qc-change-flow"
),
CHANGE_FLOW_SUBMIT
(
"79560501"
,
"发起变更"
,
"yanxuan-qc-change-flow"
),
CHANGE_FLOW_EXE
(
"79560503"
,
"变更结果确认"
,
"qc-change-flow"
),
CHANGE_FLOW_EXE
(
"79560502"
,
"变更执行"
,
"yanxuan-qc-change-flow"
),
CHANGE_FLOW_CONFIRM
(
"79560502"
,
"变更申请提交"
,
"qc-change-flow"
),
CHANGE_FLOW_CONFIRM
(
"79560503"
,
"变更结果确认"
,
"yanxuan-qc-change-flow"
),
END
(
"9999"
,
"结束"
,
"qc-change-flow"
);
CHANGE_FLOW_CHANGE_SUBMIT
(
"79560504"
,
"变更申请提交"
,
"yanxuan-qc-change-flow"
),
END
(
"9999"
,
"结束"
,
"yanxuan-qc-change-flow"
);
@Getter
@Getter
private
final
String
nodeId
;
private
final
String
nodeId
;
...
...
yanxuan-qc-change-system-integration/src/main/java/com/netease/mail/yanxuan/change/integration/flow/FlowRpcService.java
View file @
79cbb425
...
@@ -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
;
/**
/**
...
@@ -24,7 +25,7 @@ import com.netease.yanxuan.missa.client.annotation.MissaClient;
...
@@ -24,7 +25,7 @@ import com.netease.yanxuan.missa.client.annotation.MissaClient;
* @Date 2022/11/16
* @Date 2022/11/16
*/
*/
@Service
@Service
@MissaClient
(
serviceCode
=
"yanxuan-flowx-server
.service
"
)
@MissaClient
(
serviceCode
=
"yanxuan-flowx-server"
)
public
interface
FlowRpcService
{
public
interface
FlowRpcService
{
/**
/**
...
@@ -41,6 +42,13 @@ public interface FlowRpcService {
...
@@ -41,6 +42,13 @@ 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
);
}
}
yanxuan-qc-change-system-integration/src/main/java/com/netease/mail/yanxuan/change/integration/flow/FlowxSubmitDTO.java
0 → 100644
View file @
79cbb425
/**
* @(#)WorkflowApproveDTO.java, 2021年1月19日.
*
* Copyright 2021 Netease, Inc. All rights reserved.
* NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package
com
.
netease
.
mail
.
yanxuan
.
change
.
integration
.
flow
;
import
java.util.Map
;
public
class
FlowxSubmitDTO
{
private
String
topoId
;
/**
* 流程id
*/
private
String
flowId
;
/**
* 当前节点
*/
private
String
currentNodeId
;
/**
* 审核节点时是审核通过与否,自动执行节点时是执行成功与否
*/
private
boolean
approved
;
/**
* 用户id
*/
private
String
uid
;
/**
* 用户名
*/
private
String
userName
;
/**
* 业务数据
*/
private
String
content
;
/**
* 网关使用的判断条件传入
*/
private
Map
<
String
,
Object
>
paramMap
;
/**
* 审核节点时是不通过理由,自动执行节点时是执行结果描述
*/
private
String
rejectReason
;
private
String
extension
;
/**
* 操作结果
*/
private
String
operateResult
;
private
String
approveFormExtensionInfo
;
/**
* 备注
*/
private
String
remark
;
public
String
getApproveFormExtensionInfo
()
{
return
approveFormExtensionInfo
;
}
public
void
setApproveFormExtensionInfo
(
String
approveFormExtensionInfo
)
{
this
.
approveFormExtensionInfo
=
approveFormExtensionInfo
;
}
public
String
getOperateResult
()
{
return
operateResult
;
}
public
void
setOperateResult
(
String
operateResult
)
{
this
.
operateResult
=
operateResult
;
}
public
String
getTopoId
()
{
return
topoId
;
}
public
void
setTopoId
(
String
topoId
)
{
this
.
topoId
=
topoId
;
}
public
String
getFlowId
()
{
return
flowId
;
}
public
void
setFlowId
(
String
flowId
)
{
this
.
flowId
=
flowId
;
}
public
String
getCurrentNodeId
()
{
return
currentNodeId
;
}
public
void
setCurrentNodeId
(
String
currentNodeId
)
{
this
.
currentNodeId
=
currentNodeId
;
}
public
boolean
isApproved
()
{
return
approved
;
}
public
void
setApproved
(
boolean
approved
)
{
this
.
approved
=
approved
;
}
public
String
getRejectReason
()
{
return
rejectReason
;
}
public
void
setRejectReason
(
String
rejectReason
)
{
this
.
rejectReason
=
rejectReason
;
}
public
String
getExtension
()
{
return
extension
;
}
public
void
setExtension
(
String
extension
)
{
this
.
extension
=
extension
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
Map
<
String
,
Object
>
getParamMap
()
{
return
paramMap
;
}
public
void
setParamMap
(
Map
<
String
,
Object
>
paramMap
)
{
this
.
paramMap
=
paramMap
;
}
public
String
getContent
()
{
return
content
;
}
public
void
setContent
(
String
content
)
{
this
.
content
=
content
;
}
public
String
getUid
()
{
return
uid
;
}
public
void
setUid
(
String
uid
)
{
this
.
uid
=
uid
;
}
public
String
getUserName
()
{
return
userName
;
}
public
void
setUserName
(
String
userName
)
{
this
.
userName
=
userName
;
}
}
yanxuan-qc-change-system-web/src/main/java/com/netease/mail/yanxuan/change/web/controller/ChangeFlowController.java
View file @
79cbb425
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
*/
*/
package
com
.
netease
.
mail
.
yanxuan
.
change
.
web
.
controller
;
package
com
.
netease
.
mail
.
yanxuan
.
change
.
web
.
controller
;
import
java.util.List
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -73,7 +75,7 @@ public class ChangeFlowController {
...
@@ -73,7 +75,7 @@ public class ChangeFlowController {
* @return
* @return
*/
*/
@PostMapping
(
"/create"
)
@PostMapping
(
"/create"
)
public
AjaxResult
<
Boolean
>
createAndSubmit
(
@RequestBody
@Valid
ChangeFlowCreateReq
changeFlowCreateReq
)
{
public
AjaxResult
<
List
<
String
>
>
createAndSubmit
(
@RequestBody
@Valid
ChangeFlowCreateReq
changeFlowCreateReq
)
{
log
.
info
(
"[createAndSubmit] createAndSubmit req={}"
,
JSON
.
toJSONString
(
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