|
@ -1052,7 +1052,7 @@ public class BmsSupplierController { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
/** ------------------------------- 校验负责人 ------------------------------------------------ */ |
|
|
/** ------------------------------- 校验负责人 ------------------------------------------------ */ |
|
|
List<String> userCodes = new ArrayList<>(); |
|
|
Set<String> userCodes = new HashSet<>(); |
|
|
userCodes.addAll( |
|
|
userCodes.addAll( |
|
|
saveList.stream().filter(a->StringUtils.hasText(a.getMainHeadCode())) |
|
|
saveList.stream().filter(a->StringUtils.hasText(a.getMainHeadCode())) |
|
|
.map(a->Arrays.asList(a.getMainHeadCode().split(";"))) |
|
|
.map(a->Arrays.asList(a.getMainHeadCode().split(";"))) |
|
@ -1073,7 +1073,7 @@ public class BmsSupplierController { |
|
|
.map(a->Arrays.asList(a.getMinorHeadCodes().split(";"))) |
|
|
.map(a->Arrays.asList(a.getMinorHeadCodes().split(";"))) |
|
|
.flatMap(List::stream).collect(Collectors.toList()) |
|
|
.flatMap(List::stream).collect(Collectors.toList()) |
|
|
); |
|
|
); |
|
|
userCodes = userCodes.stream().distinct().collect(Collectors.toList()); |
|
|
userCodes = userCodes.stream().filter(StringUtils::hasText).collect(Collectors.toSet()); |
|
|
List<SysUser> userList = new ArrayList<>(); |
|
|
List<SysUser> userList = new ArrayList<>(); |
|
|
if(userCodes.size()>0){ |
|
|
if(userCodes.size()>0){ |
|
|
LambdaQueryWrapper<SysUser> sysUserLambdaQueryWrapper = new LambdaQueryWrapper<>(); |
|
|
LambdaQueryWrapper<SysUser> sysUserLambdaQueryWrapper = new LambdaQueryWrapper<>(); |
|
|