Commit dae39e25 by 春觉晓

优化员工列表查询

1 parent acaa7d27
...@@ -2222,6 +2222,7 @@ public class BusinessSceneAnalysisService { ...@@ -2222,6 +2222,7 @@ public class BusinessSceneAnalysisService {
Map<String, String> staffDisabledFlagMap = Collections.EMPTY_MAP; Map<String, String> staffDisabledFlagMap = Collections.EMPTY_MAP;
if (CollectionUtils.isNotEmpty(staffInfoList)) { if (CollectionUtils.isNotEmpty(staffInfoList)) {
staffDisabledFlagMap = staffInfoList.stream() staffDisabledFlagMap = staffInfoList.stream()
.filter(x -> ObjectUtil.isNotNull(x.getStaffUuidList()))
.collect(Collectors.toMap(StaffInfoDTO::getStaffUuid, StaffInfoDTO::getDeletedFlag, (oldValue, newValue) -> oldValue)); .collect(Collectors.toMap(StaffInfoDTO::getStaffUuid, StaffInfoDTO::getDeletedFlag, (oldValue, newValue) -> oldValue));
} }
for(StaffAnalysisDTO staff : staffList) { for(StaffAnalysisDTO staff : staffList) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!