job的bug修改

This commit is contained in:
方亮 2025-11-19 09:46:21 +08:00
parent 2502d864ef
commit 9a1ffcfc07
1 changed files with 3 additions and 1 deletions

View File

@ -85,7 +85,9 @@ public class WorkerEinDayRecordTask{
try{
List<PmWorkerJob> list = mapper.getNoContractWorker();
//更新指定日期的记录
mapper.updateWorkerContractByList(list);
if(list != null && !list.isEmpty()){
mapper.updateWorkerContractByList(list);
}
}catch (Exception e){
logger.error("人员入场更新表失败,{}",e.getMessage());
}