Ver Fonte

feature 甘特图查询方式修改

xiahan há 1 ano atrás
pai
commit
c58dbbacaf

+ 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