gaodd před 1 rokem
rodič
revize
ef061e3421

+ 2 - 2
src/main/java/com/chinaitop/depot/keeperHouse/mapper/StorageKeeperTransferMapper.xml

@@ -290,10 +290,10 @@
290 290
         and skr.org_id = #{orgId}
291 291
       </if>
292 292
       <if test="searchStartDate !=null">
293
-        and skr.trans_time >= to_date(#{searchStartDate},'yyyy-mm-dd hh24:mi:ss')
293
+        and skr.trans_time >= DATE_FORMAT(#{searchStartDate},'%Y-%m-%d %H:%i:%s')
294 294
       </if>
295 295
       <if test="searchEndDate !=null">
296
-        and skr.trans_time &lt;= to_date(#{searchEndDate},'yyyy-mm-dd hh24:mi:ss')
296
+        and skr.trans_time &lt;= DATE_FORMAT(#{searchEndDate},'%Y-%m-%d %H:%i:%s')
297 297
       </if>
298 298
     </where>
299 299
   </select>