Commit 173ef402 by hongzhong

寿险经纪人发佣关账新增字段,insurerBranchId

parent a1a21250
...@@ -78,6 +78,11 @@ public class WithdrawLabelInfo { ...@@ -78,6 +78,11 @@ public class WithdrawLabelInfo {
*/ */
private BigDecimal afterTaxAmount; private BigDecimal afterTaxAmount;
/**
* 银盾分公司id
*/
private Long insurerBranchId;
} }
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
<result column="practitionerId" jdbcType="BIGINT" property="practitionerId" /> <result column="practitionerId" jdbcType="BIGINT" property="practitionerId" />
<result column="taxAmount" jdbcType="DECIMAL" property="taxAmount" /> <result column="taxAmount" jdbcType="DECIMAL" property="taxAmount" />
<result column="afterTaxAmount" jdbcType="DECIMAL" property="afterTaxAmount" /> <result column="afterTaxAmount" jdbcType="DECIMAL" property="afterTaxAmount" />
<result column="insurerBranchId" jdbcType="BIGINT" property="insurerBranchId" />
</resultMap> </resultMap>
<select id="transformForWithdrawLabel" <select id="transformForWithdrawLabel"
parameterType="com.yd.dal.entity.agms.fortune.WithdrawQueryInfo" parameterType="com.yd.dal.entity.agms.fortune.WithdrawQueryInfo"
...@@ -268,7 +268,8 @@ ...@@ -268,7 +268,8 @@
date_format(pay.pay_date, '%Y-%m-%d %H:%i:%s') payDate, date_format(pay.pay_date, '%Y-%m-%d %H:%i:%s') payDate,
pra.ID practitionerId, pra.ID practitionerId,
if(salary.taxout_amount is null,0,salary.taxout_amount) taxAmount, if(salary.taxout_amount is null,0,salary.taxout_amount) taxAmount,
if(salary.net_amount is null,0,salary.net_amount) afterTaxAmount if(salary.net_amount is null,0,salary.net_amount) afterTaxAmount,
ib.id insurerBranchId
from ag_acl_customer_fortune_pay pay from ag_acl_customer_fortune_pay pay
inner join ag_acl_customer_fortune f on f.fortune_payed_id = pay.id inner join ag_acl_customer_fortune f on f.fortune_payed_id = pay.id
<!-- inner JOIN ag_po_order o on o.id = f.order_id --> <!-- inner JOIN ag_po_order o on o.id = f.order_id -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment