|
|
@@ -972,12 +972,15 @@
|
|
|
COALESCE(ipi.jq_supervise_costs_premiums, 0) + COALESCE(ipi.sy_supervise_costs_premiums, 0) + COALESCE(ipi.jy_supervise_costs_premiums, 0) + COALESCE(ipi.jq_other_costs_premiums, 0) + COALESCE(ipi.sy_other_costs_premiums, 0) + COALESCE(ipi.jy_other_costs_premiums, 0) AS receivableSuperviseCosts,
|
|
|
ipi.jq_premium as jqPremium,
|
|
|
ipi.jq_supervise_costs_proportion as jqSuperviseCostsProportion,
|
|
|
+ ipi.jq_other_costs_proportion,
|
|
|
ipi.jq_policy_no as jqPolicyNo,
|
|
|
ipi.sy_premium as syPremium,
|
|
|
ipi.sy_supervise_costs_proportion as sySuperviseCostsProportion,
|
|
|
+ ipi.sy_other_costs_proportion,
|
|
|
ipi.sy_policy_no as syPolicyNo,
|
|
|
ipi.jy_premium as jyPremium,
|
|
|
ipi.jy_supervise_costs_proportion as jySuperviseCostsProportion,
|
|
|
+ ipi.jy_other_costs_proportion,
|
|
|
ipi.jy_policy_no as jyPolicyNo,
|
|
|
ipi.tax_premium as taxPremium,
|
|
|
ipii.create_by as invoicePerson,
|
|
|
@@ -1014,6 +1017,9 @@
|
|
|
<if test="settlementQueryVo.companyId != null and settlementQueryVo.companyId != ''">
|
|
|
AND ipi.company_id = #{settlementQueryVo.companyId}
|
|
|
</if>
|
|
|
+ <if test="settlementQueryVo.contactPerson != null and settlementQueryVo.contactPerson != ''">
|
|
|
+ AND ipii.contact_person = #{settlementQueryVo.contactPerson}
|
|
|
+ </if>
|
|
|
<if test="settlementQueryVo.invoiceParty != null and settlementQueryVo.invoiceParty != ''">
|
|
|
AND ipii.invoice_party = #{settlementQueryVo.invoiceParty}
|
|
|
</if>
|