Browse Source

优化添加签到、签退记录接口,增加用户id校验空的逻辑

james 4 months ago
parent
commit
69fb726fb8

+ 1 - 1
service-fire/service-fire-biz/src/main/java/com/usky/fire/service/impl/PatrolInspectionAttendanceServiceImpl.java

@@ -98,7 +98,7 @@ public class PatrolInspectionAttendanceServiceImpl extends AbstractCrudService<P
             userIdList.add(attendance.getOperatorId());
         }
         LambdaQueryWrapper<PatrolInspectionPersonnel> queryWrapper1 = Wrappers.lambdaQuery();
-        queryWrapper1.in(PatrolInspectionPersonnel::getUserId,userIdList);
+        queryWrapper1.in(!userIdList.isEmpty(),PatrolInspectionPersonnel::getUserId,userIdList);
         List<PatrolInspectionPersonnel> personnelList = patrolInspectionPersonnelService.list(queryWrapper1);
         for (PatrolInspectionAttendance attendance : attendancePage.getRecords()) {
             Map<String, Object> map = new HashMap<>();