Преглед на файлове

fix:退费管理搜索bug

Joburgess преди 4 години
родител
ревизия
47ff01a788
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      mec-biz/src/main/resources/config/mybatis/StudentApplyRefundsMapper.xml

+ 4 - 4
mec-biz/src/main/resources/config/mybatis/StudentApplyRefundsMapper.xml

@@ -90,10 +90,10 @@
         SELECT sar.*,spo.expect_amount_,spo.actual_amount_,u.username_ FROM student_apply_refunds sar left join student_payment_order spo on sar.orig_payment_order_id_ = spo.id_ left join sys_user u on sar.user_id_ = u.id_
         where 1=1 
         <if test="startTime != null">
-            and sar.create_time_ &gt;= #{startTime}
+            and DATE_FORMAT(sar.create_time_,"%Y-%m-%d") &gt;= DATE_FORMAT(#{startTime},"%Y-%m-%d")
         </if>
         <if test="endTime != null">
-            and sar.create_time_ &lt;= #{endTime}
+            and DATE_FORMAT(sar.create_time_,"%Y-%m-%d") &lt;= DATE_FORMAT(#{endTime},"%Y-%m-%d")
         </if>
         <if test="status!=null and status!=''">
             and sar.status_=#{status}
@@ -109,10 +109,10 @@
 		SELECT count(1) FROM student_apply_refunds sar left join student_payment_order spo on sar.orig_payment_order_id_ = spo.id_ left join sys_user u on sar.user_id_ = u.id_
 		where 1=1 
         <if test="startTime != null">
-            and sar.create_time_ &gt;= #{startTime}
+            and DATE_FORMAT(sar.create_time_,"%Y-%m-%d") &gt;= DATE_FORMAT(#{startTime},"%Y-%m-%d")
         </if>
         <if test="endTime != null">
-            and sar.create_time_ &lt;= #{endTime}
+            and DATE_FORMAT(sar.create_time_,"%Y-%m-%d") &lt;= DATE_FORMAT(#{endTime},"%Y-%m-%d")
         </if>
         <if test="status!=null and status!=''">
             and sar.status_=#{status}