diff --git a/emis-biz/src/main/resources/mapper/EmisSettlePayRecordMapper.xml b/emis-biz/src/main/resources/mapper/EmisSettlePayRecordMapper.xml index 7de588361..12de8f69a 100644 --- a/emis-biz/src/main/resources/mapper/EmisSettlePayRecordMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisSettlePayRecordMapper.xml @@ -324,9 +324,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and ( ( esb.settle_type='2' and esb.credit_period = ]]> 30 and b.trade_date ]]> esb.payment_due_date and b.trade_date = ]]> DATE_SUB( esb.payment_due_date, INTERVAL (esb.credit_period-60) DAY ) ) or ( ( (esb.settle_type='2' and esb.credit_period 30) or esb.settle_type='1' ) and b.trade_date ]]> esb.payment_due_date ) ) - and espbr.settle_bill_no=#{settleBillNo} + + + and espbr.settle_bill_no=#{settleBillNo} + + + and espbr.pay_id=#{payId} + ) - and a.settle_bill_no=#{settleBillNo} + + and a.settle_bill_no=#{settleBillNo} + + + and b.pay_id=#{payId} + + order by b.create_time desc