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
85183640
Commit
85183640
authored
Aug 12, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发佣检核统计总寿险经纪人人数
parent
31cf0c14
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsFortuneServiceImpl.java
+4
-0
yd-api/src/main/java/com/yd/api/agms/vo/fortune/CommissionPayoutStatusQueryResponseVO.java
+5
-0
No files found.
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsFortuneServiceImpl.java
View file @
85183640
...
...
@@ -596,7 +596,10 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
BigDecimal
totalOrderPrice
=
BigDecimal
.
ZERO
;
BigDecimal
totalReferralAmount
=
BigDecimal
.
ZERO
;
List
<
Long
>
orderIdList
=
new
ArrayList
<>();
Set
<
String
>
nameSet
=
new
HashSet
<>();
for
(
CommissionPayoutStatus
commissionPayoutStatus
:
commissionPayoutStatusList
)
{
nameSet
.
add
(
commissionPayoutStatus
.
getPractitionerName
());
Long
orderId
=
commissionPayoutStatus
.
getOrderId
();
totalReferralAmount
=
totalReferralAmount
.
add
(
commissionPayoutStatus
.
getReferralAmount
()
==
null
?
BigDecimal
.
ZERO
:
commissionPayoutStatus
.
getReferralAmount
());
if
(
orderIdList
.
contains
(
orderId
)){
...
...
@@ -606,6 +609,7 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
++
totalSingular
;
totalOrderPrice
=
totalOrderPrice
.
add
(
commissionPayoutStatus
.
getOrderPrice
()
==
null
?
BigDecimal
.
ZERO
:
commissionPayoutStatus
.
getOrderPrice
());
}
responseVO
.
setLifePractitionerCount
(
nameSet
.
size
());
responseVO
.
setTotalSingular
(
totalSingular
);
responseVO
.
setTotalOrderPrice
(
totalOrderPrice
);
responseVO
.
setTotalReferralAmount
(
totalReferralAmount
);
...
...
yd-api/src/main/java/com/yd/api/agms/vo/fortune/CommissionPayoutStatusQueryResponseVO.java
View file @
85183640
...
...
@@ -26,6 +26,11 @@ public class CommissionPayoutStatusQueryResponseVO {
* 应发金额总额
*/
private
BigDecimal
totalReferralAmount
;
/**
* 寿险经纪人数量
*/
private
Integer
lifePractitionerCount
;
private
CommonResult
commonResult
;
...
...
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