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
46ea04e4
Commit
46ea04e4
authored
May 28, 2020
by
yao.xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改-销售业绩预测列表查询
parent
027eae3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
+5
-9
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
View file @
46ea04e4
...
@@ -2056,13 +2056,6 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
...
@@ -2056,13 +2056,6 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
List
<
MktLeadsGoals
>
mktLeadsGoalsList
=
(
List
<
MktLeadsGoals
>)
CollectionUtils
.
select
(
mktLeadsGoals
,
predicate
);
List
<
MktLeadsGoals
>
mktLeadsGoalsList
=
(
List
<
MktLeadsGoals
>)
CollectionUtils
.
select
(
mktLeadsGoals
,
predicate
);
predicate
=
new
BeanPropertyValueEqualsPredicate
(
"seqTime"
,
month
);
predicate
=
new
BeanPropertyValueEqualsPredicate
(
"seqTime"
,
month
);
mktLeadsGoalsList
=
(
List
<
MktLeadsGoals
>)
CollectionUtils
.
select
(
mktLeadsGoalsList
,
predicate
);
mktLeadsGoalsList
=
(
List
<
MktLeadsGoals
>)
CollectionUtils
.
select
(
mktLeadsGoalsList
,
predicate
);
if
(
mktLeadsGoalsList
.
isEmpty
()){
info
.
setPractitionerId
(
praId
);
info
.
setName
(
practitionerIdToName
.
get
(
praId
));
infos
.
add
(
info
);
continue
;
}
MktLeadsGoals
leadsGoals
=
mktLeadsGoalsList
.
get
(
0
);
//筛选此经纪人的所有指派信息
//筛选此经纪人的所有指派信息
predicate
=
new
BeanPropertyValueEqualsPredicate
(
"assignedPractitionerId"
,
praId
);
predicate
=
new
BeanPropertyValueEqualsPredicate
(
"assignedPractitionerId"
,
praId
);
List
<
MktLeadsAssigneds
>
mktLeadsAssignedsList
=
(
List
<
MktLeadsAssigneds
>)
CollectionUtils
.
select
(
mktLeadsAssigneds
,
predicate
);
List
<
MktLeadsAssigneds
>
mktLeadsAssignedsList
=
(
List
<
MktLeadsAssigneds
>)
CollectionUtils
.
select
(
mktLeadsAssigneds
,
predicate
);
...
@@ -2081,13 +2074,16 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
...
@@ -2081,13 +2074,16 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
defaultPremium
=
defaultPremium
.
add
(
leadsAssigneds
.
getFyp
());
defaultPremium
=
defaultPremium
.
add
(
leadsAssigneds
.
getFyp
());
}
}
}
}
Double
achievementRate
=
defaultCommission
.
divide
(
BigDecimal
.
valueOf
(
leadsGoals
.
getCommission
()),
4
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
();
info
.
setPractitionerId
(
praId
);
info
.
setPractitionerId
(
praId
);
info
.
setName
(
practitionerIdToName
.
get
(
praId
));
info
.
setName
(
practitionerIdToName
.
get
(
praId
));
info
.
setPieces
(
defaultPieces
);
info
.
setPieces
(
defaultPieces
);
info
.
setPremium
(
defaultPremium
.
doubleValue
());
info
.
setPremium
(
defaultPremium
.
doubleValue
());
info
.
setCommission
(
defaultCommission
.
doubleValue
());
info
.
setCommission
(
defaultCommission
.
doubleValue
());
info
.
setAchievementRate
(
achievementRate
);
if
(!
mktLeadsGoalsList
.
isEmpty
()){
MktLeadsGoals
leadsGoals
=
mktLeadsGoalsList
.
get
(
0
);
Double
achievementRate
=
defaultCommission
.
divide
(
BigDecimal
.
valueOf
(
leadsGoals
.
getCommission
()),
4
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
();
info
.
setAchievementRate
(
achievementRate
);
}
infos
.
add
(
info
);
infos
.
add
(
info
);
}
}
return
infos
;
return
infos
;
...
...
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