feat: There is no way the, 重置ES

This commit is contained in:
super_liu
2022-03-07 17:33:25 +08:00
parent 291ade6b35
commit 69c2d4c6e2
4 changed files with 45 additions and 4 deletions
@@ -98,7 +98,12 @@ public class SysInfoEOService {
String names = "";
if (StringUtils.isNotBlank(codes)) {
String[] idArr = codes.split(",");
names = dicTypeEODao.getDicNamesByCodes(Arrays.asList(idArr));
String names1 = dicTypeEODao.getDicNamesByCodes(Arrays.asList(idArr));
if(StringUtils.isNotBlank(names1) && names1.contains(",")){
List<String> list1 = Arrays.asList(names1.split(","));
List<String> list = list1.stream().distinct().collect(Collectors.toList());
names = String.join(",",list);
}
}
return names;
}