浏览代码

Merge remote-tracking branch 'origin/master'

peiguo 5 年之前
父节点
当前提交
d3b918b407

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

@@ -204,21 +204,21 @@ public class MsReportService {
                     return 2;
                     return 2;
 
 
                 //如果是凌云,判断出行是否填写异常
                 //如果是凌云,判断出行是否填写异常
-                // UptownUnit unit = uptownUnitMapper.getUptownUnitByUser(userCreate);
-                // if (unit != null) {
-                //     if (unit.getUptownId() == 1238790987234L || unit.getUptownId() == 5) {
-                //         //上一天的上报记录.3天内
-                //         List<MsSuspected> listSuspected1 = msSuspectedMapper.selectNext3Suspected(userCreate);
-                //         if (listSuspected1 != null && listSuspected1.size() == 1) {
-                //             if (listSuspected1.get(0).getTodayLocal() != null && msSuspected.getTodayLocal() != null && msSuspected.getIsTrip() != null && 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;
-                //                 }
-                //             }
-                //         }
-                //
-                //     }
-                // }
+                UptownUnit unit = uptownUnitMapper.getUptownUnitByUser(userCreate);
+                if (unit != null) {
+                    if (unit.getUptownId() == 1238790987234L || unit.getUptownId() == 5) {
+                        //上一天的上报记录.3天内
+                        List<MsSuspected> listSuspected1 = msSuspectedMapper.selectNext3Suspected(userCreate);
+                        if (listSuspected1 != null && listSuspected1.size() == 1) {
+                            if (listSuspected1.get(0).getTodayLocal() != null && msSuspected.getTodayLocal() != null && msSuspected.getIsTrip() != null && 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;
+                                }
+                            }
+                        }
+
+                    }
+                }
             }
             }
 
 
         }
         }
@@ -239,14 +239,14 @@ public class MsReportService {
         MsTrip msTrip = msTripMapper.selectById(suspectedId);
         MsTrip msTrip = msTripMapper.selectById(suspectedId);
         if (msTrip != null) {
         if (msTrip != null) {
             //上一天的上报记录.3天内
             //上一天的上报记录.3天内
-            // List<MsSuspected> listSuspected1 = msSuspectedMapper.selectNext3Suspected(userCreate);
-            // if (listSuspected1 != null && listSuspected1.size() == 1) {
-            //     if (listSuspected1.get(0).getTodayLocal() != null && msTrip.getTodayLocal() != null && msTrip.getIsTrip() != null && listSuspected1.get(0).getTodayLocal() != 0 && msTrip.getTodayLocal() != 0) {
-            //         if (listSuspected1.get(0).getTodayLocalOther() != msTrip.getTodayLocalOther() && listSuspected1.get(0).getTodayLocal() != msTrip.getTodayLocal() && msTrip.getIsTrip() == 0) {
-            //             return 4;
-            //         }
-            //     }
-            // }
+            List<MsSuspected> listSuspected1 = msSuspectedMapper.selectNext3Suspected(userCreate);
+            if (listSuspected1 != null && listSuspected1.size() == 1) {
+                if (listSuspected1.get(0).getTodayLocal() != null && msTrip.getTodayLocal() != null && msTrip.getIsTrip() != null && listSuspected1.get(0).getTodayLocal() != 0 && msTrip.getTodayLocal() != 0) {
+                    if (listSuspected1.get(0).getTodayLocalOther() != msTrip.getTodayLocalOther() && listSuspected1.get(0).getTodayLocal() != msTrip.getTodayLocal() && msTrip.getIsTrip() == 0) {
+                        return 4;
+                    }
+                }
+            }
             MsReport msReport = msReportMapper.selectById(reportId);
             MsReport msReport = msReportMapper.selectById(reportId);
             if (msReport != null) {
             if (msReport != null) {
                 msReport.setReportStatus(1);
                 msReport.setReportStatus(1);

文件差异内容过多而无法显示
+ 7 - 5
whepi-web/src/main/java/com/bofeng/wx/controller/MsTripController.java