浏览代码

修改任务接口2

yusm 1 月之前
父节点
当前提交
5a427a1400
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      fhKeeper/formulahousekeeper/management-crm/src/main/resources/mapper/TaskMapper.xml

+ 8 - 0
fhKeeper/formulahousekeeper/management-crm/src/main/resources/mapper/TaskMapper.xml

@@ -214,6 +214,10 @@
                         task.start_date IS NOT NULL AND task.end_date IS NOT NULL AND task.start_date >= #{startDate}
                         AND task.start_date <= #{endDate} AND task.end_date >= #{startDate} AND task.end_date <= #{endDate}
                     )
+                    OR
+                    (
+                    task.start_date IS NOT NULL AND task.end_date IS NOT NULL AND task.start_date <= #{startDate} AND task.end_date > #{endDate}
+                    )
                 )
             </if>
             <if test=" startDate != null and endDate == null">
@@ -319,6 +323,10 @@
                         task.start_date IS NOT NULL AND task.end_date IS NOT NULL AND task.start_date &gt;= #{startDate}
                         AND task.start_date &lt;= #{endDate} AND task.end_date &gt;= #{startDate} AND task.end_date &lt;= #{endDate}
                     )
+                    OR
+                    (
+                    task.start_date IS NOT NULL AND task.end_date IS NOT NULL AND task.start_date &lt;= #{startDate} AND task.end_date &gt; #{endDate}
+                    )
                 )
             </if>
             <if test=" startDate != null and endDate == null">