弹弓超过10分钟没有接收错误的人脸设置成功修改bug
This commit is contained in:
parent
aa1ea577a0
commit
3361a5f28a
@ -139,12 +139,13 @@ 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"))) {
|
if (statusList.stream().allMatch(o -> Objects.equals(o.getDangongStatus(), "0"))) {
|
||||||
sendSuccessStatus = 1;
|
sendSuccessStatus = 1;
|
||||||
} else if (statusList.stream().allMatch(o -> o.getDangongStatus() == null)) {
|
} else if (statusList.stream().allMatch(o -> o.getDangongStatus() == null)) {
|
||||||
@ -159,6 +160,5 @@ public class DangongWorkerFaceStatusServiceImpl extends ServiceImpl<DangongWorke
|
|||||||
.eq(WorkerInfo::getId, entry.getKey()));
|
.eq(WorkerInfo::getId, entry.getKey()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user