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
71591655
Commit
71591655
authored
Mar 25, 2022
by
wenyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、活动量分值详情显示错误
2、战队销售业绩预测(预计)列表数据显示错误
parent
004afafe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
+8
-2
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
View file @
71591655
...
...
@@ -2704,7 +2704,10 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
defaultPremium
=
defaultPremium
.
add
(
leadsAssigneds
.
getFyp
());
}
}
Double
achievementRate
=
defaultCommission
.
divide
(
quarterGoal
,
4
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
();
Double
achievementRate
=
0
D
;
if
(
quarterGoal
.
compareTo
(
BigDecimal
.
ZERO
)!=
0
){
achievementRate
=
defaultCommission
.
divide
(
quarterGoal
,
4
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
();
}
info
.
setPractitionerId
(
praId
);
info
.
setName
(
practitionerIdToName
.
get
(
praId
));
info
.
setPieces
(
defaultPieces
);
...
...
@@ -2756,7 +2759,10 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
info
.
setCommission
(
defaultCommission
.
doubleValue
());
if
(!
mktLeadsGoalsList
.
isEmpty
())
{
MktLeadsGoals
leadsGoals
=
mktLeadsGoalsList
.
get
(
0
);
Double
achievementRate
=
defaultCommission
.
divide
(
BigDecimal
.
valueOf
(
leadsGoals
.
getCommission
()),
4
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
();
Double
achievementRate
=
0
D
;
if
(
leadsGoals
.
getCommission
()
!=
null
&&
leadsGoals
.
getCommission
()
>
0
){
achievementRate
=
defaultCommission
.
divide
(
BigDecimal
.
valueOf
(
leadsGoals
.
getCommission
()),
4
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
();
}
info
.
setAchievementRate
(
achievementRate
);
}
infos
.
add
(
info
);
...
...
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