瀏覽代碼

xielianghe

lange 5 年之前
父節點
當前提交
80e09a9e5c
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      whepi-web/src/main/java/com/bofeng/service/MsReportService.java

+ 4 - 2
whepi-web/src/main/java/com/bofeng/service/MsReportService.java

@@ -208,8 +208,10 @@ public class MsReportService {
                         //上一天的上报记录.3天内
                         List<MsSuspected> listSuspected1 = msSuspectedMapper.selectNext3Suspected(userCreate);
                         if (listSuspected1 != null && listSuspected1.size() > 0) {
-                            if (listSuspected1.get(0).getTodayLocalOther() != msSuspected.getTodayLocalOther() && listSuspected1.get(0).getTodayLocal() != msSuspected.getTodayLocal() && msSuspected.getIsTrip() == 0) {
-                                return 4;
+                            if (listSuspected1.get(0).getTodayLocal() != 0 && msSuspected.getTodayLocal() != 0) {
+                                if (listSuspected1.get(0).getTodayLocalOther() != msSuspected.getTodayLocalOther() && listSuspected1.get(0).getTodayLocal() != msSuspected.getTodayLocal() && msSuspected.getIsTrip() == 0) {
+                                    return 4;
+                                }
                             }
                         }