Преглед на файлове

实际完成时间查询

преди 2 години
родител
ревизия
2b8c3b87ee
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      platform-dao/src/main/resources/mapper/check/CheckJobMapper.xml

+ 2 - 2
platform-dao/src/main/resources/mapper/check/CheckJobMapper.xml

@@ -172,10 +172,10 @@
         <if test="type != null and type != ''">
             and checkjob.type = #{type}
         </if>
-        <if test="searchStartTime != null and status==null or status==1 or status==2">
+        <if test="searchStartTime != null  and ( status==null or status==1 or status==2)">
             and checkjob.start_time <![CDATA[ >= ]]> date_format(#{searchStartTime},'%Y-%m-%d')
         </if>
-        <if test="searchEndTime != null and status==null or status==1 or status==2">
+        <if test="searchEndTime != null  and  (status==null or status==1 or status==2)">
             and checkjob.start_time <![CDATA[ <= ]]> #{searchEndTime}
         </if>
         <if test="searchStartTime != null and status!=null and status==3">