|
@@ -1092,6 +1092,7 @@
|
|
|
ipii.update_time,
|
|
ipii.update_time,
|
|
|
ipii.update_by,
|
|
ipii.update_by,
|
|
|
eic.name as company_name,
|
|
eic.name as company_name,
|
|
|
|
|
+ eic.name_simple as companyNameSimple,
|
|
|
sum( ipiis.actual_received_amount ) AS actual_received_amount,
|
|
sum( ipiis.actual_received_amount ) AS actual_received_amount,
|
|
|
ipii.status
|
|
ipii.status
|
|
|
FROM
|
|
FROM
|
|
@@ -1115,6 +1116,9 @@
|
|
|
<if test="invoiceRecordQueryVo.invoiceParty != null and invoiceRecordQueryVo.invoiceParty != ''">
|
|
<if test="invoiceRecordQueryVo.invoiceParty != null and invoiceRecordQueryVo.invoiceParty != ''">
|
|
|
AND ipii.invoice_party = #{invoiceRecordQueryVo.invoiceParty}
|
|
AND ipii.invoice_party = #{invoiceRecordQueryVo.invoiceParty}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="invoiceRecordQueryVo.companyNameSimple != null and invoiceRecordQueryVo.companyNameSimple != ''">
|
|
|
|
|
+ AND eic.id = #{invoiceRecordQueryVo.companyNameSimple}
|
|
|
|
|
+ </if>
|
|
|
<if test="invoiceRecordQueryVo.settlementStatus != null and invoiceRecordQueryVo.settlementStatus != ''">
|
|
<if test="invoiceRecordQueryVo.settlementStatus != null and invoiceRecordQueryVo.settlementStatus != ''">
|
|
|
HAVING CASE
|
|
HAVING CASE
|
|
|
WHEN ipii.receivable_supervise_premium = SUM(ipiis.actual_received_amount) THEN '1'
|
|
WHEN ipii.receivable_supervise_premium = SUM(ipiis.actual_received_amount) THEN '1'
|