Commit 8425a250 by jianan

发佣检核25-发佣检核根据保单号查询不显示手工数据

parent 14b0eeca
...@@ -142,6 +142,7 @@ ...@@ -142,6 +142,7 @@
<if test="item.payoutYearmonth != null"> <if test="item.payoutYearmonth != null">
and pb.payout_yearmonth = #{item.payoutYearmonth,jdbcType=VARCHAR} and pb.payout_yearmonth = #{item.payoutYearmonth,jdbcType=VARCHAR}
</if> </if>
<if test="item.policyNo == null">
UNION ALL UNION ALL
SELECT '' orderId,t.id fortuneId,'' commissionPayoutYearmonth,'' insurerName,'' productName, SELECT '' orderId,t.id fortuneId,'' commissionPayoutYearmonth,'' insurerName,'' productName,
'' policyNo, '' policyNo,
...@@ -151,7 +152,7 @@ ...@@ -151,7 +152,7 @@
pra.name practitionerName, pra.name practitionerName,
dept.name insurerBranchDeptName, dept.name insurerBranchDeptName,
sub.name subordinateSystemName, sub.name subordinateSystemName,
<!-- t.practitioner_level practitionerLevel, --> <!-- t.practitioner_level practitionerLevel, -->
op1.drop_option_name practitionerLevel, op1.drop_option_name practitionerLevel,
t.commission_amount commissionAmount, t.commission_amount commissionAmount,
t.commission_type commissionType, t.commission_type commissionType,
...@@ -195,15 +196,16 @@ ...@@ -195,15 +196,16 @@
<if test="item.commissionPayoutStatus != null"> <if test="item.commissionPayoutStatus != null">
and t.status = #{item.commissionPayoutStatus,jdbcType=BIGINT} and t.status = #{item.commissionPayoutStatus,jdbcType=BIGINT}
</if> </if>
<!-- <if test="item.commissionPayoutYearmonth != null"> --> <!-- <if test="item.commissionPayoutYearmonth != null"> -->
<!-- and c.check_yearmonth = #{item.commissionPayoutYearmonth,jdbcType=VARCHAR} --> <!-- and c.check_yearmonth = #{item.commissionPayoutYearmonth,jdbcType=VARCHAR} -->
<!-- </if> --> <!-- </if> -->
<if test="item.predictMonthPeriod != null"> <if test="item.predictMonthPeriod != null">
and DATE_FORMAT(t.predict_month_period, '%Y-%m') = #{item.predictMonthPeriod,jdbcType=VARCHAR} and DATE_FORMAT(t.predict_month_period, '%Y-%m') = #{item.predictMonthPeriod,jdbcType=VARCHAR}
</if> </if>
<if test="item.payoutYearmonth != null"> <if test="item.payoutYearmonth != null">
and pb.payout_yearmonth = #{item.payoutYearmonth,jdbcType=VARCHAR} and pb.payout_yearmonth = #{item.payoutYearmonth,jdbcType=VARCHAR}
</if> </if>
</if>
</select> </select>
<select id="fortunePayToOrder" resultType="com.yd.dal.entity.agms.fortune.FortunePayToOrderInfo"> <select id="fortunePayToOrder" resultType="com.yd.dal.entity.agms.fortune.FortunePayToOrderInfo">
...@@ -354,11 +356,11 @@ ...@@ -354,11 +356,11 @@
i.name insurerName, i.name insurerName,
p.name productName, p.name productName,
pp.name planName, pp.name planName,
o.effective_start_date effectiveStartDate, if(o.effective_start_date is not null,left(o.effective_start_date,10),o.effective_start_date) effectiveStartDate,
o.policy_no policyNo, o.policy_no policyNo,
f.order_price orderPrice, if(f.order_price is null,0,f.order_price) orderPrice,
f.fyc_amount fycAmount, if(f.fyc_amount is null,0,f.fyc_amount) fycAmount,
f.grade_commission_rate gradeCommissionRate, if(f.grade_commission_rate is null,0,f.grade_commission_rate) gradeCommissionRate,
(select s.name from ag_acl_practitioner_subordinate_system s where s.id = pra.subordinate_system_id) subordinateSystemName, (select s.name from ag_acl_practitioner_subordinate_system s where s.id = pra.subordinate_system_id) subordinateSystemName,
pra.name practitionerName, pra.name practitionerName,
if(f.commission_rate is null,0,f.commission_rate) commissionRate, if(f.commission_rate is null,0,f.commission_rate) commissionRate,
...@@ -367,7 +369,7 @@ ...@@ -367,7 +369,7 @@
f.drop_option_code dropOptionCode, f.drop_option_code dropOptionCode,
f.remark remark, f.remark remark,
f.commission_type commissionType, f.commission_type commissionType,
f.referral_amount referralAmount, if(f.referral_amount is null,0,f.referral_amount) referralAmount,
f.calculation_formula calculationFormula, f.calculation_formula calculationFormula,
f.withdrawed_id withdrawId f.withdrawed_id withdrawId
from ag_acl_customer_fortune f from ag_acl_customer_fortune f
......
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