弹弓超过10分钟没有接收错误的人脸设置成功修改bug

This commit is contained in:
guoshengxiong 2025-04-14 14:54:06 +08:00
parent aa1ea577a0
commit 3361a5f28a

View File

@ -139,12 +139,13 @@ public class DangongWorkerFaceStatusServiceImpl extends ServiceImpl<DangongWorke
}
Integer sendSuccessStatus;
for (DangongWorkerFaceStatus status : statusList) {
//时间小于10分钟
//超过10分钟没有接收错误的人脸设置成功
if (DateUtil.compare(status.getUpdateDate(), DateUtil.offsetMinute(new Date(), -10)) < 0) {
status.setDangongStatus("0");
status.setMsg("成功");
this.updateById(status);
}
}
if (statusList.stream().allMatch(o -> Objects.equals(o.getDangongStatus(), "0"))) {
sendSuccessStatus = 1;
} else if (statusList.stream().allMatch(o -> o.getDangongStatus() == null)) {
@ -159,6 +160,5 @@ public class DangongWorkerFaceStatusServiceImpl extends ServiceImpl<DangongWorke
.eq(WorkerInfo::getId, entry.getKey()));
}
}
}
}