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
c3e304ca
Commit
c3e304ca
authored
Dec 08, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/feature-changeFlow-221110' into feature-changeFlow-221110
parents
3e160e5d
c8d1715c
Pipeline
#43551
failed with stages
in 1 minute 21 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
ChangeFlowBiz.java
...om/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
+5
-4
ChangeCommanderEnum.java
...mail/yanxuan/change/common/enums/ChangeCommanderEnum.java
+1
-1
ChangePrincipalEnum.java
...mail/yanxuan/change/common/enums/ChangePrincipalEnum.java
+1
-1
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
View file @
c3e304ca
...
@@ -244,7 +244,7 @@ public class ChangeFlowBiz {
...
@@ -244,7 +244,7 @@ public class ChangeFlowBiz {
throw
ExceptionFactory
.
createBiz
(
ResponseCode
.
SUBMIT_FLOW_ERROR
,
"首次提交节点失败"
);
throw
ExceptionFactory
.
createBiz
(
ResponseCode
.
SUBMIT_FLOW_ERROR
,
"首次提交节点失败"
);
}
}
// 更新节点id
// 更新节点id
changeRecord
.
setFlowNode
(
nodeId
);
changeRecord
.
setFlowNode
(
ChangeFlowEnum
.
CHANGE_FLOW_EXE
.
getNodeId
()
);
changeRecord
.
setUpdateTime
(
DateUtils
.
getCurrentTime
());
changeRecord
.
setUpdateTime
(
DateUtils
.
getCurrentTime
());
changeFlowService
.
updateRecord
(
changeRecord
);
changeFlowService
.
updateRecord
(
changeRecord
);
HashMap
<
String
,
Object
>
param
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
param
=
new
HashMap
<>();
...
@@ -804,7 +804,7 @@ public class ChangeFlowBiz {
...
@@ -804,7 +804,7 @@ public class ChangeFlowBiz {
return
changeFlowVO
;
return
changeFlowVO
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
}
}
PageVO
pageVO
=
buildPageVo
(
list
.
size
(),
pageSize
,
page
);
PageVO
pageVO
=
buildPageVo
(
changeRecordPageInfo
.
getTotal
(),
pageSize
,
page
);
ChangeFlowListVO
changeFlowListVO
=
new
ChangeFlowListVO
();
ChangeFlowListVO
changeFlowListVO
=
new
ChangeFlowListVO
();
changeFlowListVO
.
setPageVo
(
pageVO
);
changeFlowListVO
.
setPageVo
(
pageVO
);
changeFlowListVO
.
setChangeFlowList
(
list
);
changeFlowListVO
.
setChangeFlowList
(
list
);
...
@@ -814,12 +814,13 @@ public class ChangeFlowBiz {
...
@@ -814,12 +814,13 @@ public class ChangeFlowBiz {
/**
/**
* 构建分页信息
* 构建分页信息
*
*
* @param total
Count
* @param total
* @param pageSize
* @param pageSize
* @param page
* @param page
* @return
* @return
*/
*/
private
PageVO
buildPageVo
(
int
totalCount
,
Integer
pageSize
,
Integer
page
)
{
private
PageVO
buildPageVo
(
Long
total
,
Integer
pageSize
,
Integer
page
)
{
Integer
totalCount
=
Math
.
toIntExact
(
total
);
int
totalPage
;
int
totalPage
;
int
i
=
totalCount
%
pageSize
;
int
i
=
totalCount
%
pageSize
;
if
(
i
!=
0
)
{
if
(
i
!=
0
)
{
...
...
yanxuan-qc-change-system-common/src/main/java/com/netease/mail/yanxuan/change/common/enums/ChangeCommanderEnum.java
View file @
c3e304ca
...
@@ -8,7 +8,7 @@ public enum ChangeCommanderEnum {
...
@@ -8,7 +8,7 @@ public enum ChangeCommanderEnum {
COMMANDER_ORIGINATOR
(
1
,
"发起人"
),
COMMANDER_ORIGINATOR
(
1
,
"发起人"
),
FIXED_PERSON
(
2
,
"固定人"
),
FIXED_PERSON
(
2
,
"固定人"
),
GOODS_ASSOCIATED
(
3
,
"
产
品关联角色"
),
GOODS_ASSOCIATED
(
3
,
"
商
品关联角色"
),
SUPPLIERS_ASSOCIATED
(
4
,
"供应商关联角色"
);
SUPPLIERS_ASSOCIATED
(
4
,
"供应商关联角色"
);
ChangeCommanderEnum
(
Integer
id
,
String
name
)
{
ChangeCommanderEnum
(
Integer
id
,
String
name
)
{
...
...
yanxuan-qc-change-system-common/src/main/java/com/netease/mail/yanxuan/change/common/enums/ChangePrincipalEnum.java
View file @
c3e304ca
...
@@ -6,7 +6,7 @@ package com.netease.mail.yanxuan.change.common.enums;
...
@@ -6,7 +6,7 @@ package com.netease.mail.yanxuan.change.common.enums;
*/
*/
public
enum
ChangePrincipalEnum
{
public
enum
ChangePrincipalEnum
{
GOODS_BU
(
1
,
"商品
BU
"
),
GOODS_BU
(
1
,
"商品
开发
"
),
PURCHASE
(
2
,
"采购"
),
PURCHASE
(
2
,
"采购"
),
PROSPECTUS
(
3
,
"计划"
),
PROSPECTUS
(
3
,
"计划"
),
SQE
(
4
,
"SQE"
);
SQE
(
4
,
"SQE"
);
...
...
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