金筑工实名制同步数据
This commit is contained in:
parent
a40bd2ce6b
commit
687db39e33
@ -1,5 +1,6 @@
|
||||
package com.zhgd.xmgl.task;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.RandomUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
@ -131,9 +132,11 @@ public class JzgTask {
|
||||
saveWorkerInfo(attendance, projectSn);
|
||||
}
|
||||
}
|
||||
Long checkDate = jzgList.stream().max((o1, o2) -> o1.getCheckDate().compareTo(o2.getCheckDate())).get().getCheckDate();
|
||||
if (time == null || checkDate > time) {
|
||||
redisRepository.set(key, checkDate);
|
||||
if (CollUtil.isNotEmpty(jzgList)) {
|
||||
Long checkDate = jzgList.stream().max((o1, o2) -> o1.getCheckDate().compareTo(o2.getCheckDate())).get().getCheckDate();
|
||||
if (time == null || checkDate > time) {
|
||||
redisRepository.set(key, checkDate);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user