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
4bbffd5c
Commit
4bbffd5c
authored
Dec 27, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发佣检核12-发佣列表查询加预计发用年月
parent
dbee7be6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
12 deletions
+38
-12
yd-api/src/main/java/com/yd/api/agms/vo/fortune/CommissionPayoutStatusQueryRequestVO.java
+13
-1
yd-api/src/main/java/com/yd/dal/entity/agms/fortune/CommissionPayoutStatusQueryInfo.java
+12
-0
yd-api/src/main/resources/mapper/agms/AgmsFortuneMapper.xml
+8
-2
yd-api/src/main/resources/mapper/lifecommission/LifeCommissionMapper.xml
+5
-9
No files found.
yd-api/src/main/java/com/yd/api/agms/vo/fortune/CommissionPayoutStatusQueryRequestVO.java
View file @
4bbffd5c
...
...
@@ -43,9 +43,13 @@ public class CommissionPayoutStatusQueryRequestVO {
private
String
commissionPayoutYearmonth
;
/**
*
预计
发佣年月
*
实际
发佣年月
*/
private
String
payoutYearmonth
;
/**
* 预计发佣年月
*/
private
String
predictMonthPeriod
;
/**
* 系统标志,区分公司营业部和体系,1,分公司,2营业部,3,S1分部,4,S2体系,5,S3纵队
...
...
@@ -175,5 +179,13 @@ public class CommissionPayoutStatusQueryRequestVO {
public
void
setPage
(
PageInfo
<
CommissionPayoutStatus
>
page
)
{
this
.
page
=
page
;
}
public
String
getPredictMonthPeriod
()
{
return
predictMonthPeriod
;
}
public
void
setPredictMonthPeriod
(
String
predictMonthPeriod
)
{
this
.
predictMonthPeriod
=
predictMonthPeriod
;
}
}
yd-api/src/main/java/com/yd/dal/entity/agms/fortune/CommissionPayoutStatusQueryInfo.java
View file @
4bbffd5c
...
...
@@ -47,6 +47,10 @@ public class CommissionPayoutStatusQueryInfo {
* 预计发佣年月
*/
private
String
payoutYearmonth
;
/**
* 预计发佣年月
*/
private
String
predictMonthPeriod
;
/**
* 体系子集id
...
...
@@ -148,4 +152,12 @@ public class CommissionPayoutStatusQueryInfo {
public
void
setPage
(
PageInfo
<
CommissionPayoutStatus
>
page
)
{
this
.
page
=
page
;
}
public
String
getPredictMonthPeriod
()
{
return
predictMonthPeriod
;
}
public
void
setPredictMonthPeriod
(
String
predictMonthPeriod
)
{
this
.
predictMonthPeriod
=
predictMonthPeriod
;
}
}
yd-api/src/main/resources/mapper/agms/AgmsFortuneMapper.xml
View file @
4bbffd5c
...
...
@@ -133,8 +133,11 @@
<if
test=
"item.commissionPayoutYearmonth != null"
>
and c.check_yearmonth = #{item.commissionPayoutYearmonth,jdbcType=VARCHAR}
</if>
<if
test=
"item.predictMonthPeriod != null"
>
and DATE_FORMAT(t.predict_month_period, '%Y-%m') = #{item.predictMonthPeriod,jdbcType=VARCHAR}
</if>
<if
test=
"item.payoutYearmonth != null"
>
and
DATE_FORMAT(t.predict_month_period, '%Y-%m')
= #{item.payoutYearmonth,jdbcType=VARCHAR}
and
pb.payout_yearmonth
= #{item.payoutYearmonth,jdbcType=VARCHAR}
</if>
UNION ALL
SELECT '' orderId,t.id fortuneId,'' commissionPayoutYearmonth,'' insurerName,'' productName,
...
...
@@ -192,8 +195,11 @@
<!-- <if test="item.commissionPayoutYearmonth != null"> -->
<!-- and c.check_yearmonth = #{item.commissionPayoutYearmonth,jdbcType=VARCHAR} -->
<!-- </if> -->
<if
test=
"item.predictMonthPeriod != null"
>
and DATE_FORMAT(t.predict_month_period, '%Y-%m') = #{item.predictMonthPeriod,jdbcType=VARCHAR}
</if>
<if
test=
"item.payoutYearmonth != null"
>
and
DATE_FORMAT(t.predict_month_period, '%Y-%m')
= #{item.payoutYearmonth,jdbcType=VARCHAR}
and
pb.payout_yearmonth
= #{item.payoutYearmonth,jdbcType=VARCHAR}
</if>
</select>
...
...
yd-api/src/main/resources/mapper/lifecommission/LifeCommissionMapper.xml
View file @
4bbffd5c
...
...
@@ -83,7 +83,6 @@
) p3
on o.config_level = p3.config_level and o.plan_id = p3.plan_id
left join ag_acl_insurer i on o.insurer_id = i.id
left join ag_acl_insurer_branch b on p.insurer_branch_id = b.id
left join (SELECT order_id, name, practitioner_type_id, f.customer_id
from (
select *
...
...
@@ -105,7 +104,7 @@
and o.insurer_id = #{insurerId}
</if>
<if
test=
"insurerBranchId != null"
>
and
b.
id = #{insurerBranchId,jdbcType=BIGINT}
and
p.insurer_branch_
id = #{insurerBranchId,jdbcType=BIGINT}
</if>
<if
test=
"practitionerTypeId != null"
>
and f.practitioner_type_id = #{practitionerTypeId}
...
...
@@ -212,7 +211,8 @@
) o
left join ag_po_order_commission_check c on o.commission_check_id = c.id
left join ag_acl_insurer i on o.insurer_id = i.id
left join ag_acl_insurer_branch b on o.insurer_id = b.insurer_id
left join ag_product_plan a on o.plan_id = a.id
left join ag_product p on o.product_id = p.id
left join (SELECT order_id, name, practitioner_type_id, f.customer_id
from (
select *
...
...
@@ -227,7 +227,7 @@
and o.insurer_id = #{insurerId}
</if>
<if
test=
"insurerBranchId != null"
>
and
b.
id = #{insurerBranchId,jdbcType=BIGINT}
and
p.insurer_branch_
id = #{insurerBranchId,jdbcType=BIGINT}
</if>
<if
test=
"practitionerTypeId != null"
>
and f.practitioner_type_id = #{practitionerTypeId}
...
...
@@ -286,9 +286,6 @@
o.commission_type commissionType,
o.commission_item commissionItem,
b.id insurerBranchId,
b.branch_name insurerBranchName,
null as coverageTerm,
null as payTerm,
(case o.config_level when 2 then p2.pName2 else p3.pName3 END) categoryName,
...
...
@@ -324,13 +321,12 @@
) p3
on o.config_level = p3.config_level and o.plan_id = p3.plan_id
left join ag_acl_insurer i on o.insurer_id = i.id
LEFT JOIN ag_acl_insurer_branch b ON o.insurer_id = b.insurer_id
where 1=1
<if
test=
"insurerId != null"
>
and o.insurer_id = #{insurerId}
</if>
<if
test=
"insurerBranchId != null"
>
and
b.
id = #{insurerBranchId,jdbcType=BIGINT}
and
p.insurer_branch_
id = #{insurerBranchId,jdbcType=BIGINT}
</if>
<if
test=
"commissionType != null"
>
and o.commission_type = #{commissionType}
...
...
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