Commit 5ade4388 by 穆龙飞

modify:增加去重逻辑

parent 68f8bbd4
...@@ -73,7 +73,7 @@ public class AdminChangeConfigServiceImpl implements AdminChangeConfigService { ...@@ -73,7 +73,7 @@ public class AdminChangeConfigServiceImpl implements AdminChangeConfigService {
PageVO pageVO = buildPageVo(total.intValue(), pageSize, pageNum); PageVO pageVO = buildPageVo(total.intValue(), pageSize, pageNum);
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("]", "").replace(" ", "");
Set<String> finialDep = Arrays.stream(replaceDep.split(",")).collect(Collectors.toSet()); Set<String> finialDep = Arrays.stream(replaceDep.split(",")).collect(Collectors.toSet());
i.setParticipateChangeExecDepartment(Joiner.on(",").join(finialDep)); i.setParticipateChangeExecDepartment(Joiner.on(",").join(finialDep));
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment