suntianwu 3 سال پیش
والد
کامیت
d7404d79a8
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      src/main/java/com/iden/bms/service/WarningService.java

+ 4 - 0
src/main/java/com/iden/bms/service/WarningService.java

@@ -173,6 +173,7 @@ public class WarningService {
             if (idenWarningPerson != null) {
                 idenWarningPerson.setAppearFrequency(strangerDayFrequency);
                 idenWarningPerson.setStrangerType(strangerType);
+                idenWarningPerson.setHandleStatus(HandleWarningStatusEnum.NO_HANDLE.getValue());
                 idenWarningPerson.setModifyTime(new Date());
                 this.idenWarningPersonService.updateById(idenWarningPerson);
             } else {
@@ -250,6 +251,7 @@ public class WarningService {
         IdenWarningPerson idenWarningPerson = this.idenWarningPersonService.getOne(queryWrapper);
         if (idenWarningPerson != null) {
             idenWarningPerson.setAppearFrequency(idenWarningPerson.getAppearFrequency() + 1);
+            idenWarningPerson.setHandleStatus(HandleWarningStatusEnum.NO_HANDLE.getValue());
             idenWarningPerson.setModifyTime(new Date());
             this.idenWarningPersonService.updateById(idenWarningPerson);
         } else {
@@ -352,6 +354,7 @@ public class WarningService {
                 if (idenWarningPerson != null) {
                     idenWarningPerson.setContinueDisappearDays(continueDisappearDays);
                     idenWarningPerson.setModifyTime(new Date());
+                    idenWarningPerson.setHandleStatus(HandleWarningStatusEnum.NO_HANDLE.getValue());
                     this.idenWarningPersonService.updateById(idenWarningPerson);
                 } else {
                     //生成预警数据
@@ -466,6 +469,7 @@ public class WarningService {
             IdenWarningPerson idenWarningPerson = this.idenWarningPersonService.getOne(queryWrapper0);
             if (idenWarningPerson != null) {
                 idenWarningPerson.setAppearFrequency(count);
+                idenWarningPerson.setHandleStatus(HandleWarningStatusEnum.NO_HANDLE.getValue());
                 idenWarningPerson.setModifyTime(new Date());
                 this.idenWarningPersonService.updateById(idenWarningPerson);