Kaynağa Gözat

预警设置

Zimo 3 gün önce
ebeveyn
işleme
0fdd7187b9

+ 2 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/qhse/measure/IotMeasureDetectServiceImpl.java

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