Explorar o código

bugFix 甘特图查询数据不正确的问题

xiahan hai 1 ano
pai
achega
9c73d796f5

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

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