|
@@ -86,6 +86,8 @@ public class IotMeasureDetectServiceImpl implements IotMeasureDetectService {
|
|
|
if (validityPeriod.isAfter(LocalDateTime.now()) && ChronoUnit.DAYS.between(LocalDateTime.now(), validityPeriod) < 90) {
|
|
if (validityPeriod.isAfter(LocalDateTime.now()) && ChronoUnit.DAYS.between(LocalDateTime.now(), validityPeriod) < 90) {
|
|
|
iotMeasureBookDO.setAlertWarn(true);
|
|
iotMeasureBookDO.setAlertWarn(true);
|
|
|
iotMeasureBookDO.setExpired(false);
|
|
iotMeasureBookDO.setExpired(false);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ iotMeasureBookDO.setAlertWarn(false);
|
|
|
}
|
|
}
|
|
|
iotMeasureBookMapper.updateById(iotMeasureBookDO);
|
|
iotMeasureBookMapper.updateById(iotMeasureBookDO);
|
|
|
iotMeasureDetectMapper.updateById(updateObj);
|
|
iotMeasureDetectMapper.updateById(updateObj);
|