This commit is contained in:
linfso 2025-05-16 15:19:02 +08:00
parent 33dc7e58d5
commit c16accd640

View File

@ -319,10 +319,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and b.trade_date <![CDATA[ <= ]]> esb.payment_due_date
</if>
<if test="params.queryDataType != null and params.queryDataType == 2">
and ( b.trade_date <![CDATA[ > ]]> esb.payment_due_date and b.trade_date <![CDATA[ <= ]]> DATE_SUB( esb.payment_due_date, INTERVAL - 30 DAY ) )
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 ) DAY ) )
</if>
<if test="params.queryDataType != null and params.queryDataType == 3">
and b.trade_date <![CDATA[ > ]]> DATE_SUB( esb.payment_due_date, INTERVAL - 30 DAY )
and b.trade_date <![CDATA[ >= ]]> DATE_SUB( esb.payment_due_date, INTERVAL - (esb.credit_period-60) DAY )
</if>
and FIND_IN_SET(espbr.settle_bill_no,#{settleBillNo})
)