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
004afafe
Commit
004afafe
authored
Mar 25, 2022
by
wenyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.活动量分值详情显示错误
2.战队销售业绩预测(预计)显示错误
parent
a789490a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
+11
-4
yd-api/src/main/resources/mapper/marketing/MktLeadsAssignedsMapper.xml
+2
-1
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
View file @
004afafe
...
...
@@ -2604,9 +2604,13 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
}
//总预测值
BigDecimal
quarterGoal
=
BigDecimal
.
ZERO
;
BigDecimal
defaultPremium
=
BigDecimal
.
ZERO
;
Integer
defaultPieces
=
0
;
for
(
MktLeadsGoals
leadsGoals
:
mktLeadsGoalsList
)
{
if
(
leadsGoals
.
getStatisticTimeUnit
()
==
1
)
{
quarterGoal
=
quarterGoal
.
add
(
BigDecimal
.
valueOf
(
leadsGoals
.
getCommission
()));
defaultPremium
=
defaultPremium
.
add
(
BigDecimal
.
valueOf
(
leadsGoals
.
getPremium
()));
defaultPieces
=
defaultPieces
+
leadsGoals
.
getPieces
();
}
}
...
...
@@ -2615,8 +2619,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
List
<
MktLeadsAssigneds
>
mktLeadsAssignedsList
=
(
List
<
MktLeadsAssigneds
>)
CollectionUtils
.
select
(
mktLeadsAssigneds
,
predicate
);
BigDecimal
defaultCommission
=
BigDecimal
.
ZERO
;
BigDecimal
defaultPremium
=
BigDecimal
.
ZERO
;
Integer
defaultPieces
=
0
;
defaultCommission
=
quarterGoal
;
for
(
MktLeadsAssigneds
leadsAssigneds
:
mktLeadsAssignedsList
)
{
String
timeToClose
=
CommonUtil
.
dateParseString
(
leadsAssigneds
.
getTimeToClose
(),
"yyyy-MM-dd"
);
if
(
CommonUtil
.
isNullOrBlank
(
timeToClose
))
{
...
...
@@ -2665,6 +2668,9 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
}
//总预测值
BigDecimal
quarterGoal
=
BigDecimal
.
ZERO
;
BigDecimal
defaultPremium
=
BigDecimal
.
ZERO
;
Integer
defaultPieces
=
0
;
for
(
MktLeadsGoals
leadsGoals
:
mktLeadsGoalsList
)
{
if
(
leadsGoals
.
getStatisticTimeUnit
()
==
3
)
{
//月目标
...
...
@@ -2672,6 +2678,8 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
Integer
monthNum
=
leadsGoals
.
getSeqTime
();
if
(
Arrays
.
asList
(
quarter
).
contains
(
monthNum
))
{
quarterGoal
=
quarterGoal
.
add
(
BigDecimal
.
valueOf
(
leadsGoals
.
getCommission
()));
defaultPremium
=
defaultPremium
.
add
(
BigDecimal
.
valueOf
(
leadsGoals
.
getPremium
()));
defaultPieces
=
defaultPieces
+
leadsGoals
.
getPieces
();
}
}
}
...
...
@@ -2681,8 +2689,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
List
<
MktLeadsAssigneds
>
mktLeadsAssignedsList
=
(
List
<
MktLeadsAssigneds
>)
CollectionUtils
.
select
(
mktLeadsAssigneds
,
predicate
);
BigDecimal
defaultCommission
=
BigDecimal
.
ZERO
;
BigDecimal
defaultPremium
=
BigDecimal
.
ZERO
;
Integer
defaultPieces
=
0
;
defaultCommission
=
quarterGoal
;
for
(
MktLeadsAssigneds
leadsAssigneds
:
mktLeadsAssignedsList
)
{
String
timeToClose
=
CommonUtil
.
dateParseString
(
leadsAssigneds
.
getTimeToClose
(),
"yyyy-MM-dd"
);
if
(
CommonUtil
.
isNullOrBlank
(
timeToClose
))
{
...
...
yd-api/src/main/resources/mapper/marketing/MktLeadsAssignedsMapper.xml
View file @
004afafe
...
...
@@ -307,6 +307,6 @@
and not EXISTS (select t.leads_assigned_id
from ag_mkt_leads_assigned_track t
where t.md_drop_option_id = #{dropOptionsId,jdbcType=BIGINT}
and a.id = t.leads_assigned_id)
;
and a.id = t.leads_assigned_id)
</select>
</mapper>
\ No newline at end of file
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