ソースを参照

函数 更改

gaodd 1 年間 前
コミット
f6a27c8a1c
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 2 2
      src/main/java/com/chinaitop/depot/keeperHouse/mapper/StorageHouserepairMapper.xml

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

@@ -403,10 +403,10 @@
403
         and shr.org_id = #{orgId}
403
         and shr.org_id = #{orgId}
404
       </if>
404
       </if>
405
       <if test="searchStartDate !=null">
405
       <if test="searchStartDate !=null">
406
-        and shr.check_date >= to_date(#{searchStartDate},'yyyy-mm-dd hh24:mi:ss')
406
+        and shr.check_date >= DATE_FORMAT(#{searchStartDate},'%Y-%m-%d %H:%i:%s')
407
       </if>
407
       </if>
408
       <if test="searchEndDate !=null">
408
       <if test="searchEndDate !=null">
409
-        and shr.check_date &lt;= to_date(#{searchEndDate},'yyyy-mm-dd hh24:mi:ss')
409
+        and shr.check_date &lt;= DATE_FORMAT(#{searchEndDate},'%Y-%m-%d %H:%i:%s')
410
       </if>
410
       </if>
411
       <if test="problemExist !=null">
411
       <if test="problemExist !=null">
412
         and shr.problem_exist = #{problemExist}
412
         and shr.problem_exist = #{problemExist}