fanxw преди 1 година
родител
ревизия
ac0975d6f9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/java/com/chinaitop/depot/yjbj/mapper/YjbjMapper.xml

+ 1 - 1
src/main/java/com/chinaitop/depot/yjbj/mapper/YjbjMapper.xml

@@ -151,7 +151,7 @@
151 151
 		create_time as bjsj
152 152
 	from storage_pre_violation
153 153
     <where>
154
-      <if test="obj.cfmc != null">
154
+      <if test="obj.startTime != null and obj.startTime != '' and obj.endTime != null and obj.endTime != ''">
155 155
         and create_time between #{obj.startTime,jdbcType=VARCHAR} and #{obj.endTime,jdbcType=VARCHAR}
156 156
       </if>
157 157
       <if test="obj.orgId != null">