|
@@ -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_ >= #{startTime}
|
|
|
+ and DATE_FORMAT(sar.create_time_,"%Y-%m-%d") >= DATE_FORMAT(#{startTime},"%Y-%m-%d")
|
|
|
</if>
|
|
|
<if test="endTime != null">
|
|
|
- and sar.create_time_ <= #{endTime}
|
|
|
+ and DATE_FORMAT(sar.create_time_,"%Y-%m-%d") <= 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_ >= #{startTime}
|
|
|
+ and DATE_FORMAT(sar.create_time_,"%Y-%m-%d") >= DATE_FORMAT(#{startTime},"%Y-%m-%d")
|
|
|
</if>
|
|
|
<if test="endTime != null">
|
|
|
- and sar.create_time_ <= #{endTime}
|
|
|
+ and DATE_FORMAT(sar.create_time_,"%Y-%m-%d") <= DATE_FORMAT(#{endTime},"%Y-%m-%d")
|
|
|
</if>
|
|
|
<if test="status!=null and status!=''">
|
|
|
and sar.status_=#{status}
|