|
|
@@ -665,7 +665,7 @@
|
|
|
ipiis.create_by ,
|
|
|
ipiis.create_time,
|
|
|
ipiis.settlement_payment_difference ,
|
|
|
- ipiis.settlement_payment_reason
|
|
|
+ ipiis.settlement_payment_reason,ipii.invoice_no
|
|
|
FROM
|
|
|
ins_ply_income_invoice_settlement ipiis
|
|
|
LEFT JOIN ins_ply_income_invoice ipii ON ipii.id = ipiis.invoice_id AND ipii.is_delete = 0
|
|
|
@@ -676,6 +676,12 @@
|
|
|
<where>
|
|
|
ipiis.is_delete = 0
|
|
|
AND ipiis.system_code = #{settlementQueryVo.systemCode}
|
|
|
+ <if test="settlementQueryVo.receivePaymentDateBegin != null and settlementQueryVo.receivePaymentDateBegin != '' and settlementQueryVo.receivePaymentDateEnd != null and settlementQueryVo.receivePaymentDateEnd != '' ">
|
|
|
+ and ipiis.receive_payment_date between #{settlementQueryVo.receivePaymentDateBegin} and #{settlementQueryVo.receivePaymentDateEnd}
|
|
|
+ </if>
|
|
|
+ <if test="settlementQueryVo.invoiceNo != null and settlementQueryVo.invoiceNo != '' ">
|
|
|
+ and ipii.invoice_no = #{settlementQueryVo.invoiceNo}
|
|
|
+ </if>
|
|
|
<if test="settlementQueryVo.settlementIds != null and settlementQueryVo.settlementIds != ''">
|
|
|
AND ipiis.id IN
|
|
|
<foreach collection="settlementQueryVo.settlementIds" item="settlementId" open="(" separator="," close=")">
|