há 1 ano atrás
pai
commit
474bb63fc6

+ 4 - 4
platform-dao/src/main/resources/mapper/repair/RepairApplicationFormMapper.xml

@@ -153,11 +153,11 @@
                 and (application.dispatch_user_id = #{tempUserId} or application.user_id = #{tempUserId}
                 or application.repair_user_id = #{tempUserId})
             </if>
-            <if test="addCalendar">
-                and calendar_date is not null
+            <if test="addCalendar!=null and addCalendar">
+                and application.calendar_date is not null
             </if>
-            <if test="!addCalendar">
-                and calendar_date is null
+            <if test="addCalendar!=null and !addCalendar">
+                and application.calendar_date is null
             </if>
         </where>
     </select>