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
a55a189b
Commit
a55a189b
authored
Dec 02, 2020
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
辅导人查看被辅导人
parent
e24d304f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
5 deletions
+18
-5
yd-api/src/main/java/com/yd/api/practitioner/service/impl/ScheduleTrackServiceImpl.java
+11
-5
yd-api/src/main/java/com/yd/dal/mapper/marketing/ScheduleTrackMapper.java
+2
-0
yd-api/src/main/resources/mapper/marketing/ScheduleTrackMapper.xml
+5
-0
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/ScheduleTrackServiceImpl.java
View file @
a55a189b
...
@@ -293,11 +293,9 @@ public class ScheduleTrackServiceImpl implements ScheduleTrackService {
...
@@ -293,11 +293,9 @@ public class ScheduleTrackServiceImpl implements ScheduleTrackService {
cal2
.
set
(
Calendar
.
SECOND
,
0
);
cal2
.
set
(
Calendar
.
SECOND
,
0
);
Date
weekOne
=
cal2
.
getTime
();
Date
weekOne
=
cal2
.
getTime
();
List
<
Long
>
practitionerIdList
=
scheduleTrackMapper
.
queryTeamAllPractitionerId
(
practitionerId
);
// 获取团队成员及被辅导人的practitionerId
if
(
CollectionUtils
.
isEmpty
(
practitionerIdList
))
{
List
<
Long
>
practitionerIdList
=
this
.
getPractitionerIdList
(
practitionerId
);
// 集合为空,说明该经纪人不是团队长
practitionerIdList
.
add
(
practitionerId
);
}
// 根据团队长经纪人id查询团队每个成员本日,本周,本月得分以及---线上本月FYC
// 根据团队长经纪人id查询团队每个成员本日,本周,本月得分以及---线上本月FYC
List
<
PersonalPEPScore
>
saleAndRecuit
=
scheduleTrackMapper
.
querySaleRecuitScoreFYC
(
practitionerIdList
);
List
<
PersonalPEPScore
>
saleAndRecuit
=
scheduleTrackMapper
.
querySaleRecuitScoreFYC
(
practitionerIdList
);
// 获取mobileNoList
// 获取mobileNoList
...
@@ -333,6 +331,14 @@ public class ScheduleTrackServiceImpl implements ScheduleTrackService {
...
@@ -333,6 +331,14 @@ public class ScheduleTrackServiceImpl implements ScheduleTrackService {
return
resp
;
return
resp
;
}
}
private
List
<
Long
>
getPractitionerIdList
(
Long
practitionerId
)
{
List
<
Long
>
practitionerIdList1
=
scheduleTrackMapper
.
queryTeamAllPractitionerId
(
practitionerId
);
List
<
Long
>
practitionerIdList2
=
scheduleTrackMapper
.
queryMentoredByPractitionerId
(
practitionerId
);
practitionerIdList1
.
addAll
(
practitionerIdList2
);
return
practitionerIdList1
;
}
private
void
computeTotalFYC
(
List
<
PersonalPEPScore
>
saleAndRecuit
,
List
<
PersonalOffLineFYC
>
personalOffLineFYCList
)
{
private
void
computeTotalFYC
(
List
<
PersonalPEPScore
>
saleAndRecuit
,
List
<
PersonalOffLineFYC
>
personalOffLineFYCList
)
{
for
(
PersonalPEPScore
online:
saleAndRecuit
)
{
for
(
PersonalPEPScore
online:
saleAndRecuit
)
{
for
(
PersonalOffLineFYC
offline:
personalOffLineFYCList
)
{
for
(
PersonalOffLineFYC
offline:
personalOffLineFYCList
)
{
...
...
yd-api/src/main/java/com/yd/dal/mapper/marketing/ScheduleTrackMapper.java
View file @
a55a189b
...
@@ -31,5 +31,7 @@ public interface ScheduleTrackMapper {
...
@@ -31,5 +31,7 @@ public interface ScheduleTrackMapper {
int
checkIsExist
(
@Param
(
"practitionerId"
)
Long
practitionerId
,
@Param
(
"trackTime"
)
Date
trackTime
,
@Param
(
"mdDropOptionId"
)
Long
mdDropOptionId
,
int
checkIsExist
(
@Param
(
"practitionerId"
)
Long
practitionerId
,
@Param
(
"trackTime"
)
Date
trackTime
,
@Param
(
"mdDropOptionId"
)
Long
mdDropOptionId
,
@Param
(
"taskTimeFrom"
)
String
taskTimeFrom
,
@Param
(
"taskTimeEnd"
)
String
taskTimeEnd
);
@Param
(
"taskTimeFrom"
)
String
taskTimeFrom
,
@Param
(
"taskTimeEnd"
)
String
taskTimeEnd
);
List
<
Long
>
queryMentoredByPractitionerId
(
Long
practitionerId
);
}
}
yd-api/src/main/resources/mapper/marketing/ScheduleTrackMapper.xml
View file @
a55a189b
...
@@ -258,4 +258,8 @@
...
@@ -258,4 +258,8 @@
AND md_drop_option_id = #{mdDropOptionId,jdbcType=BIGINT}
AND md_drop_option_id = #{mdDropOptionId,jdbcType=BIGINT}
</select>
</select>
<select
id=
"queryMentoredByPractitionerId"
resultType=
"java.lang.Long"
statementType=
"CALLABLE"
>
CALL proc_queryMentoredByPractitionerId(#{practitionerId,jdbcType=BIGINT});
</select>
</mapper>
</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