|
|
@@ -3523,8 +3523,10 @@
|
|
|
<select id="getExpectNetProfit" resultType="com.ydtech.modules.order.entity.InsAreaCompany">
|
|
|
select
|
|
|
ROUND(sum(IFNULL(ifon.jq_costs_premiums,0) + IFNULL(ifon.sy_costs_premiums,0) + IFNULL (ifon.no_costs_premiums,0)),2) as "entranceAllFee",
|
|
|
- ROUND(sum(IFNULL(jq_export_other_costs_premiums,0) + IFNULL(jq_export_supervise_costs_premiums,0) +IFNULL(sy_export_other_costs_premiums,0) +IFNULL(sy_export_supervise_costs_premiums,0)
|
|
|
- +IFNULL(no_export_supervise_costs_premiums,0)+IFNULL(no_export_supervise_costs_premiums,0) ),2) as "exportAllFee",
|
|
|
+ ROUND(sum(IFNULL(jq_export_other_costs_premiums,0) + IFNULL(jq_export_supervise_costs_premiums,0)
|
|
|
+ +IFNULL(sy_export_other_costs_premiums,0) +IFNULL(sy_export_supervise_costs_premiums,0)
|
|
|
+ +IFNULL(no_export_other_costs_premiums,0)+IFNULL(no_export_supervise_costs_premiums,0) ),2) as
|
|
|
+ "exportAllFee",
|
|
|
ROUND(sum(IFNULL(b.distributionAmount,0)),2) as "distributionAmount"
|
|
|
from ins_area_company iac
|
|
|
left join ins_orders io on io.orderno = iac.orderno
|