瀏覽代碼

feature 甘特图查询方式修改

xiahan 1 年之前
父節點
當前提交
c58dbbacaf
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      cx-aps/cx-aps-common/src/main/resources/mybatis/ApsProcessOperationProcessEquDao.xml

+ 5 - 2
cx-aps/cx-aps-common/src/main/resources/mybatis/ApsProcessOperationProcessEquDao.xml

@@ -227,8 +227,11 @@
                 </foreach>
             </if>
             <if test="factoryId != null and factoryId != '' and factoryId != 'ALL'">and a1.TENANTID = #{factoryId}</if>
-            <if test="startTime != null ">and a1.PLANSTARTDATE &gt;= #{startTime}</if>
-            <if test="endTime != null ">and a1.PLANENDDATE &lt;= #{endTime}</if>
+
+            <if test="startTime != null and endTime != null ">
+                and (a1.PLANSTARTDATE between #{startTime} and #{endTime}
+                or  a1.PLANENDDATE  between  #{startTime} and #{endTime})
+            </if>
             <if test="processids != null ">and a1.PROCESSID in (${processids})</if>
         </where>
         order by a1.PLANSTARTDATE asc,a1.PLANENDDATE asc