This commit is contained in:
linfso 2025-05-20 09:50:02 +08:00
parent 75ea8c1cce
commit 4f5eb76f33

View File

@ -324,9 +324,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="params.queryDataType != null and params.queryDataType == 3">
and ( ( esb.settle_type='2' and esb.credit_period <![CDATA[ >= ]]> 30 and b.trade_date <![CDATA[ > ]]> esb.payment_due_date and b.trade_date <![CDATA[ >= ]]> DATE_SUB( esb.payment_due_date, INTERVAL (esb.credit_period-60) DAY ) ) or ( ( (esb.settle_type='2' and esb.credit_period <![CDATA[ < ]]> 30) or esb.settle_type='1' ) and b.trade_date <![CDATA[ > ]]> esb.payment_due_date ) )
</if>
and espbr.settle_bill_no=#{settleBillNo}
<if test="settleBillNo != null and settleBillNo != ''">
and espbr.settle_bill_no=#{settleBillNo}
</if>
<if test="payId != null and payId != ''">
and espbr.pay_id=#{payId}
</if>
)
and a.settle_bill_no=#{settleBillNo}
<if test="settleBillNo != null and settleBillNo != ''">
and a.settle_bill_no=#{settleBillNo}
</if>
<if test="payId != null and payId != ''">
and b.pay_id=#{payId}
</if>
order by b.create_time desc
</select>