Browse Source

更改sql

peiguo 4 years ago
parent
commit
575bbdfbb6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      whepi-web/src/main/resources/mapper/RbMapper.xml

+ 2 - 2
whepi-web/src/main/resources/mapper/RbMapper.xml

@@ -75,7 +75,7 @@
                 and (msr.report_status is null or msr.report_status=0)
             </if>
             <if test="msStatus == '1'.toString()">
-                and msr.report_status is null
+                and (msr.report_status is null or msr.report_status=0)
             </if>
             <if test="msStatus == '2'.toString()">
                 and msr.report_status=1 and msr.ms_status=1
@@ -208,7 +208,7 @@
                 and (msr.report_status is null or msr.report_status=0)
             </if>
             <if test="msStatus == '1'.toString()">
-                and msr.report_status is null
+                and (msr.report_status is null or msr.report_status=0)
             </if>
             <if test="msStatus == '2'.toString()">
                 and msr.report_status=1 and msr.ms_status=1