فهرست منبع

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

xiahan 1 سال پیش
والد
کامیت
9c73d796f5
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      cx-aps/cx-aps-common/src/main/resources/mybatis/ApsProcessOperationProcessEquDao.xml

+ 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>