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
68f8bbd4
Commit
68f8bbd4
authored
Dec 09, 2022
by
穆龙飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify:增加去重逻辑
parent
67fb007d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
AdminChangeConfigServiceImpl.java
...biz/service/impl/change/AdminChangeConfigServiceImpl.java
+6
-1
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/impl/change/AdminChangeConfigServiceImpl.java
View file @
68f8bbd4
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
com.google.common.base.Joiner
;
import
com.netease.mail.yanxuan.change.biz.meta.exception.ExceptionFactory
;
import
com.netease.mail.yanxuan.change.biz.meta.exception.ExceptionFactory
;
import
com.netease.mail.yanxuan.change.biz.service.change.AdminChangeConfigService
;
import
com.netease.mail.yanxuan.change.biz.service.change.AdminChangeConfigService
;
import
com.netease.mail.yanxuan.change.biz.service.change.ChangeConfigService
;
import
com.netease.mail.yanxuan.change.biz.service.change.ChangeConfigService
;
...
@@ -34,8 +35,11 @@ import org.springframework.stereotype.Service;
...
@@ -34,8 +35,11 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.TimeUnit
;
import
java.util.stream.Collectors
;
/**
/**
* @author WangJiaXiang
* @author WangJiaXiang
...
@@ -70,7 +74,8 @@ public class AdminChangeConfigServiceImpl implements AdminChangeConfigService {
...
@@ -70,7 +74,8 @@ public class AdminChangeConfigServiceImpl implements AdminChangeConfigService {
List
<
ChangeConfigPo
>
changeConfig
=
pageInfo
.
getList
();
List
<
ChangeConfigPo
>
changeConfig
=
pageInfo
.
getList
();
changeConfig
.
forEach
(
i
->
{
changeConfig
.
forEach
(
i
->
{
String
replaceDep
=
i
.
getParticipateChangeExecDepartment
().
replace
(
"["
,
""
).
replace
(
"]"
,
""
);
String
replaceDep
=
i
.
getParticipateChangeExecDepartment
().
replace
(
"["
,
""
).
replace
(
"]"
,
""
);
i
.
setParticipateChangeExecDepartment
(
replaceDep
);
Set
<
String
>
finialDep
=
Arrays
.
stream
(
replaceDep
.
split
(
","
)).
collect
(
Collectors
.
toSet
());
i
.
setParticipateChangeExecDepartment
(
Joiner
.
on
(
","
).
join
(
finialDep
));
});
});
vo
.
setChangeConfigs
(
changeConfig
);
vo
.
setChangeConfigs
(
changeConfig
);
vo
.
setPageVo
(
pageVO
);
vo
.
setPageVo
(
pageVO
);
...
...
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