diff --git a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/InspectionInfoServiceImpl.java b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/InspectionInfoServiceImpl.java index f8c760a0..c2b35d86 100644 --- a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/InspectionInfoServiceImpl.java +++ b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/InspectionInfoServiceImpl.java @@ -248,7 +248,9 @@ public class InspectionInfoServiceImpl extends ServiceImpl listByUserId = roleService.getListByUserId(roleId); List ids = listByUserId.stream().map(UserDTO::getId).collect(Collectors.toList()); - ids.add(inspectionInfo.getLeadManId()); + if (ObjectUtil.isNull(inspectionInfo.getLeadManId())) { + ids.add(inspectionInfo.getLeadManId()); + } // 获取当前共单引车员的id if (CollUtil.isNotEmpty(ids)) { for (Long id : ids) {