弹弓超过10分钟没有接收错误的人脸设置成功修改bug
This commit is contained in:
parent
aa1ea577a0
commit
3361a5f28a
@ -139,25 +139,25 @@ public class DangongWorkerFaceStatusServiceImpl extends ServiceImpl<DangongWorke
|
|||||||
}
|
}
|
||||||
Integer sendSuccessStatus;
|
Integer sendSuccessStatus;
|
||||||
for (DangongWorkerFaceStatus status : statusList) {
|
for (DangongWorkerFaceStatus status : statusList) {
|
||||||
//时间小于10分钟
|
//超过10分钟没有接收错误的人脸设置成功
|
||||||
if (DateUtil.compare(status.getUpdateDate(), DateUtil.offsetMinute(new Date(), -10)) < 0) {
|
if (DateUtil.compare(status.getUpdateDate(), DateUtil.offsetMinute(new Date(), -10)) < 0) {
|
||||||
status.setDangongStatus("0");
|
status.setDangongStatus("0");
|
||||||
status.setMsg("成功");
|
status.setMsg("成功");
|
||||||
this.updateById(status);
|
this.updateById(status);
|
||||||
}
|
}
|
||||||
if (statusList.stream().allMatch(o -> Objects.equals(o.getDangongStatus(), "0"))) {
|
|
||||||
sendSuccessStatus = 1;
|
|
||||||
} else if (statusList.stream().allMatch(o -> o.getDangongStatus() == null)) {
|
|
||||||
sendSuccessStatus = 4;
|
|
||||||
} else if (statusList.stream().anyMatch(o -> Objects.equals(o.getDangongStatus(), "0"))) {
|
|
||||||
sendSuccessStatus = 3;
|
|
||||||
} else {
|
|
||||||
sendSuccessStatus = 2;
|
|
||||||
}
|
|
||||||
workerInfoService.update(null, new LambdaUpdateWrapper<WorkerInfo>()
|
|
||||||
.set(WorkerInfo::getSendSuccessStatus, sendSuccessStatus)
|
|
||||||
.eq(WorkerInfo::getId, entry.getKey()));
|
|
||||||
}
|
}
|
||||||
|
if (statusList.stream().allMatch(o -> Objects.equals(o.getDangongStatus(), "0"))) {
|
||||||
|
sendSuccessStatus = 1;
|
||||||
|
} else if (statusList.stream().allMatch(o -> o.getDangongStatus() == null)) {
|
||||||
|
sendSuccessStatus = 4;
|
||||||
|
} else if (statusList.stream().anyMatch(o -> Objects.equals(o.getDangongStatus(), "0"))) {
|
||||||
|
sendSuccessStatus = 3;
|
||||||
|
} else {
|
||||||
|
sendSuccessStatus = 2;
|
||||||
|
}
|
||||||
|
workerInfoService.update(null, new LambdaUpdateWrapper<WorkerInfo>()
|
||||||
|
.set(WorkerInfo::getSendSuccessStatus, sendSuccessStatus)
|
||||||
|
.eq(WorkerInfo::getId, entry.getKey()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user