пре 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">