Browse Source

"巡检查询"

yangjunfeng 1 month ago
parent
commit
6ff02524cf
1 changed files with 2 additions and 5 deletions
  1. 2 5
      ylsw-gps/gps-boot/src/main/resources/mapper/plan/PlanMapper.xml

+ 2 - 5
ylsw-gps/gps-boot/src/main/resources/mapper/plan/PlanMapper.xml

@@ -76,11 +76,8 @@
             </foreach>
         </if>
         <if test="dto.planBegindate != null and dto.planEnddate != null ">
-            and (t1.PLAN_BEGINDATE >= #{dto.planBegindate}
-            and t1.PLAN_ENDDATE &lt;= #{dto.planEnddate}
-            or
-            t1.PLAN_BEGINDATE &lt;= #{dto.planBegindate}
-            and t1.PLAN_ENDDATE >= #{dto.planEnddate})
+            and (t1.PLAN_BEGINDATE between #{dto.planBegindate} and #{dto.planEnddate}
+                     or t1.PLAN_ENDDATE between #{dto.planBegindate} and #{dto.planEnddate})
         </if>
         <if test="dto.createUser != null  ">
             and t1.CREATE_USER = #{createUser}