|
@@ -179,6 +179,12 @@ public interface FsStorePaymentMapper
|
|
|
"<if test = 'maps.endTime != null and maps.endTime != \"\" '> " +
|
|
|
" AND date_format(p.pay_time,'%y%m%d') <= date_format(#{maps.endTime},'%y%m%d') " +
|
|
|
"</if>" +
|
|
|
+ "<if test = 'maps.refundBeginTime != null and maps.refundBeginTime != \"\" '> " +
|
|
|
+ "and DATE_FORMAT(p.refund_time,'%y%m%d') >= date_format(#{maps.refundBeginTime},'%y%m%d') " +
|
|
|
+ "</if>" +
|
|
|
+ "<if test = 'maps.refundEndTime != null and maps.refundEndTime != \"\" '> " +
|
|
|
+ " AND date_format(p.refund_time,'%y%m%d') <= date_format(#{maps.refundEndTime},'%y%m%d') " +
|
|
|
+ "</if>" +
|
|
|
"<if test = 'maps.deptId != null '> " +
|
|
|
" AND (p.dept_id = #{maps.deptId} OR p.dept_id IN ( SELECT t.dept_id FROM company_dept t WHERE find_in_set(#{maps.deptId}, ancestors) )) " +
|
|
|
"</if>" +
|