Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
8425a250
Commit
8425a250
authored
Dec 31, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发佣检核25-发佣检核根据保单号查询不显示手工数据
parent
14b0eeca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
yd-api/src/main/resources/mapper/agms/AgmsFortuneMapper.xml
+11
-9
No files found.
yd-api/src/main/resources/mapper/agms/AgmsFortuneMapper.xml
View file @
8425a250
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment