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>