Browse Source

考勤匹配公司合并

anderx 1 year ago
parent
commit
a407d3c4db

+ 3 - 1
ruoyi-system/src/main/java/com/ruoyi/project/service/impl/ProjectStaffRecordServiceImpl.java

@@ -349,7 +349,9 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
         in.setPageSize(999999);
         List<ProjectStaffRecordOut> projectStaffRecordOuts = listRecord(in);
         List<Long> collect = projectStaffRecordOuts.stream().map(ProjectStaffRecordOut::getId).collect(Collectors.toList());
-        projectStaffRecordMapper.mateUserRecord(collect);
+        if (!collect.isEmpty()){
+            projectStaffRecordMapper.mateUserRecord(collect);
+        }
     }