преди 1 година
родител
ревизия
474bb63fc6
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      platform-dao/src/main/resources/mapper/repair/RepairApplicationFormMapper.xml

+ 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>