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
a6afb6dd
Commit
a6afb6dd
authored
Jan 04, 2023
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 同舟端发起变更创建人展示供应商id
parent
f9d55407
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
ChangeFlowBiz.java
...om/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
+7
-4
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
View file @
a6afb6dd
...
...
@@ -1072,9 +1072,7 @@ public class ChangeFlowBiz {
changeFlowVO
.
setItemBasicInfoList
(
null
);
}
changeFlowVO
.
setChangeState
(
changeRecord
.
getState
());
changeFlowVO
.
setChangeCreator
(
CreateSourceEnum
.
TONG_ZHOU
.
getType
().
equals
(
changeRecord
.
getCreateSource
())
?
changeRecord
.
getCreateSupplier
()
:
changeRecord
.
getCreator
());
changeFlowVO
.
setChangeCreator
(
changeRecord
.
getCreator
());
List
<
ChangeFlowExecVO
>
changeFlowExecRecord
=
changeFlowExecService
.
getChangeFlowExecRecord
(
changeRecord
.
getId
());
try
{
Set
<
String
>
userEmail
=
changeFlowExecRecord
.
stream
().
map
(
ChangeFlowExecVO:
:
getChangeExecUserEmail
).
collect
(
Collectors
.
toSet
());
...
...
@@ -1113,7 +1111,8 @@ public class ChangeFlowBiz {
}
changeFlowVO
.
setChangeCommanderView
(
commander
.
get
(
0
).
getUserName
()
+
"("
+
orgName
+
")"
);
}
if
(!
CollectionUtils
.
isEmpty
(
creator
))
{
// 非同舟端展示人名及三级部门名称
if
(!
CreateSourceEnum
.
TONG_ZHOU
.
getType
().
equals
(
changeRecord
.
getCreateSource
())
&&
!
CollectionUtils
.
isEmpty
(
creator
))
{
Optional
<
SecondaryDepartments
>
anyOrg
=
creator
.
stream
().
filter
(
o
->
o
.
getOrgPosLevel
()
==
97
).
findAny
();
String
orgName
=
"无三级部门"
;
if
(
anyOrg
.
isPresent
())
{
...
...
@@ -1121,6 +1120,10 @@ public class ChangeFlowBiz {
}
changeFlowVO
.
setChangeCreatorView
(
creator
.
get
(
0
).
getUserName
()
+
"("
+
orgName
+
")"
);
}
// 同舟端发起变更,发起人展示供应商id
if
(
CreateSourceEnum
.
TONG_ZHOU
.
getType
().
equals
(
changeRecord
.
getCreateSource
()))
{
changeFlowVO
.
setChangeCreatorView
(
changeRecord
.
getCreateSupplier
());
}
}
catch
(
Exception
ex
)
{
log
.
error
(
"add org has ex"
,
ex
);
}
...
...
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