lange %!s(int64=5) %!d(string=hai) anos
pai
achega
da3cb76591

+ 9 - 8
whepi-web/src/main/java/com/bofeng/service/MsReportService.java

@@ -185,23 +185,24 @@ public class MsReportService {
         if (listReport == null || listReport.size() == 0)
         if (listReport == null || listReport.size() == 0)
             return 0;
             return 0;
 
 
-        //如果是凌云,判断出行是否填写异常
-        UptownUnit unit = uptownUnitMapper.getUptownUnitByUser(userCreate);
         //判断体温是否填写
         //判断体温是否填写
         List<MsSuspected> listSuspected = msSuspectedMapper.selectByReportId(Long.parseLong(listReport.get(0).getReportId().toString()));
         List<MsSuspected> listSuspected = msSuspectedMapper.selectByReportId(Long.parseLong(listReport.get(0).getReportId().toString()));
         if (listSuspected == null || listSuspected.size() == 0)
         if (listSuspected == null || listSuspected.size() == 0)
             return 3;
             return 3;
-        if (unit != null) {
-            if (unit.getUptownId() == 1238790987234L || unit.getUptownId() == 5) {
-                if (listSuspected != null && listSuspected.size() > 1)
-                    return 5;
-            }
-        } else {
+        // if (unit != null) {
+        //     if (unit.getUptownId() == 1238790987234L || unit.getUptownId() == 5) {
+        //         if (listSuspected != null && listSuspected.size() > 1)
+        //             return 5;
+        //     }
+        // }
+        else {
             for (MsSuspected msSuspected : listSuspected) {
             for (MsSuspected msSuspected : listSuspected) {
                 //体温是否填写
                 //体温是否填写
                 if (msSuspected.getTemperature().compareTo(new BigDecimal(0)) == 0)
                 if (msSuspected.getTemperature().compareTo(new BigDecimal(0)) == 0)
                     return 2;
                     return 2;
 
 
+                //如果是凌云,判断出行是否填写异常
+                UptownUnit unit = uptownUnitMapper.getUptownUnitByUser(userCreate);
                 if (unit != null) {
                 if (unit != null) {
                     if (unit.getUptownId() == 1238790987234L || unit.getUptownId() == 5) {
                     if (unit.getUptownId() == 1238790987234L || unit.getUptownId() == 5) {
                         //上一天的上报记录.3天内
                         //上一天的上报记录.3天内