Browse Source

整改接口-过滤空部门数据

zhuang 1 month ago
parent
commit
3efb9279f6

+ 1 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxApiServiceImpl.java

@@ -621,6 +621,7 @@ public class ZhcxApiServiceImpl implements ZhcxApiService {
 
     private List<RectifyApiDataDto> processSecondaryDeptData(List<ZhcxProjectRectifyMachineVo> list, ZhcxProjectManageDo projectManageDo, List<RectifyApiDataDto> firstDeptRectifyList) {
         Map<String, List<ZhcxProjectRectifyMachineVo>> groupDeptList = list.stream()
+                .filter(e -> Objects.nonNull(e.getDeptid()))
                 .collect(Collectors.groupingBy(ZhcxProjectRectifyMachineVo::getDeptname));
 
         List<RectifyApiDataDto> rectifyDtoList = new ArrayList<>();