fanxw il y a 1 an
Parent
commit
ac0975d6f9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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">