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
4220a71f
Commit
4220a71f
authored
Sep 18, 2020
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0918-PEP得分详情加姓名字段
parent
bb33282d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
5 deletions
+18
-5
yd-api/src/main/java/com/yd/api/practitioner/PractitionerController.java
+0
-3
yd-api/src/main/java/com/yd/api/practitioner/service/ScheduleTrackService.java
+2
-0
yd-api/src/main/java/com/yd/api/practitioner/service/impl/ScheduleTrackServiceImpl.java
+6
-0
yd-api/src/main/java/com/yd/dal/entity/practitioner/PEPScoreDetail.java
+1
-0
yd-api/src/main/java/com/yd/dal/mapper/marketing/ScheduleTrackMapper.java
+2
-1
yd-api/src/main/resources/mapper/marketing/ScheduleTrackMapper.xml
+7
-1
No files found.
yd-api/src/main/java/com/yd/api/practitioner/PractitionerController.java
View file @
4220a71f
...
@@ -27,13 +27,10 @@ import com.yd.api.practitioner.vo.setting.*;
...
@@ -27,13 +27,10 @@ import com.yd.api.practitioner.vo.setting.*;
import
com.yd.api.practitioner.vo.subordinate.SubordinateSystemMemberQueryRequestVO
;
import
com.yd.api.practitioner.vo.subordinate.SubordinateSystemMemberQueryRequestVO
;
import
com.yd.api.practitioner.vo.subordinate.SubordinateSystemMemberQueryResponseVO
;
import
com.yd.api.practitioner.vo.subordinate.SubordinateSystemMemberQueryResponseVO
;
import
com.yd.api.result.JsonResult
;
import
com.yd.api.result.JsonResult
;
import
com.yd.dal.entity.practitioner.ScheduleTrack
;
import
org.apache.commons.codec.net.QCodec
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.Map
;
@Controller
@Controller
@RestController
@RestController
...
...
yd-api/src/main/java/com/yd/api/practitioner/service/ScheduleTrackService.java
View file @
4220a71f
package
com
.
yd
.
api
.
practitioner
.
service
;
package
com
.
yd
.
api
.
practitioner
.
service
;
import
com.yd.api.practitioner.vo.sechedule.*
;
import
com.yd.api.practitioner.vo.sechedule.*
;
import
org.springframework.stereotype.Service
;
@Service
(
"scheduleTrackService"
)
public
interface
ScheduleTrackService
{
public
interface
ScheduleTrackService
{
AddScheduleTrackResponseVO
insert
(
AddScheduleTrackRequestVO
requestVO
);
AddScheduleTrackResponseVO
insert
(
AddScheduleTrackRequestVO
requestVO
);
...
...
yd-api/src/main/java/com/yd/api/practitioner/service/impl/ScheduleTrackServiceImpl.java
View file @
4220a71f
package
com
.
yd
.
api
.
practitioner
.
service
.
impl
;
package
com
.
yd
.
api
.
practitioner
.
service
.
impl
;
import
com.yd.api.customer.service.CustomerService
;
import
com.yd.api.practitioner.service.ScheduleTrackService
;
import
com.yd.api.practitioner.service.ScheduleTrackService
;
import
com.yd.api.practitioner.vo.sechedule.*
;
import
com.yd.api.practitioner.vo.sechedule.*
;
import
com.yd.api.result.CommonResult
;
import
com.yd.api.result.CommonResult
;
...
@@ -34,6 +35,8 @@ public class ScheduleTrackServiceImpl implements ScheduleTrackService {
...
@@ -34,6 +35,8 @@ public class ScheduleTrackServiceImpl implements ScheduleTrackService {
private
MdDropOptionsDALService
mdDropOptionsDALService
;
private
MdDropOptionsDALService
mdDropOptionsDALService
;
@Autowired
@Autowired
private
MktLeadsAssignedTrackDALService
mktLeadsAssignedTrackDALService
;
private
MktLeadsAssignedTrackDALService
mktLeadsAssignedTrackDALService
;
@Autowired
private
CustomerService
customerService
;
@Override
@Override
public
AddScheduleTrackResponseVO
insert
(
AddScheduleTrackRequestVO
requestVO
)
{
public
AddScheduleTrackResponseVO
insert
(
AddScheduleTrackRequestVO
requestVO
)
{
...
@@ -328,6 +331,9 @@ public class ScheduleTrackServiceImpl implements ScheduleTrackService {
...
@@ -328,6 +331,9 @@ public class ScheduleTrackServiceImpl implements ScheduleTrackService {
PEPScoreDetail
.
setCoachScore
(
coachScore
);
PEPScoreDetail
.
setCoachScore
(
coachScore
);
PEPScoreDetail
.
setTrainScore
(
trainScore
);
PEPScoreDetail
.
setTrainScore
(
trainScore
);
PEPScoreDetail
.
setMeetingScore
(
meetingScore
);
PEPScoreDetail
.
setMeetingScore
(
meetingScore
);
// 根据practitionerId查询经纪人姓名
String
name
=
scheduleTrackMapper
.
queryNameByPractitionerId
(
practitionerId
);
PEPScoreDetail
.
setName
(
name
);
resp
.
setDetail
(
PEPScoreDetail
);
resp
.
setDetail
(
PEPScoreDetail
);
resp
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
resp
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
...
...
yd-api/src/main/java/com/yd/dal/entity/practitioner/PEPScoreDetail.java
View file @
4220a71f
...
@@ -5,6 +5,7 @@ import lombok.Data;
...
@@ -5,6 +5,7 @@ import lombok.Data;
@Data
@Data
public
class
PEPScoreDetail
{
public
class
PEPScoreDetail
{
private
String
name
;
private
Long
recruitScore
;
private
Long
recruitScore
;
private
Long
saleScore
;
private
Long
saleScore
;
private
Long
coachScore
;
private
Long
coachScore
;
...
...
yd-api/src/main/java/com/yd/dal/mapper/marketing/ScheduleTrackMapper.java
View file @
4220a71f
package
com
.
yd
.
dal
.
mapper
.
marketing
;
package
com
.
yd
.
dal
.
mapper
.
marketing
;
import
com.yd.dal.entity.practitioner.PEPScoreDetail
;
import
com.yd.dal.entity.practitioner.PersonalPEPScore
;
import
com.yd.dal.entity.practitioner.PersonalPEPScore
;
import
com.yd.dal.entity.practitioner.PersonalSchedule
;
import
com.yd.dal.entity.practitioner.PersonalSchedule
;
import
com.yd.dal.entity.practitioner.ScheduleTrack
;
import
com.yd.dal.entity.practitioner.ScheduleTrack
;
...
@@ -28,5 +27,7 @@ public interface ScheduleTrackMapper {
...
@@ -28,5 +27,7 @@ public interface ScheduleTrackMapper {
List
<
ScheduleTrack
>
queryPersonalScheduleListByTime
(
@Param
(
"practitionerId"
)
Long
practitionerId
,
@Param
(
"time"
)
String
time
);
List
<
ScheduleTrack
>
queryPersonalScheduleListByTime
(
@Param
(
"practitionerId"
)
Long
practitionerId
,
@Param
(
"time"
)
String
time
);
void
deleteScheduleTrackById
(
@Param
(
"scheduleTrackId"
)
Long
scheduleTrackId
);
void
deleteScheduleTrackById
(
@Param
(
"scheduleTrackId"
)
Long
scheduleTrackId
);
String
queryNameByPractitionerId
(
Long
practitionerId
);
}
}
yd-api/src/main/resources/mapper/marketing/ScheduleTrackMapper.xml
View file @
4220a71f
...
@@ -82,9 +82,9 @@
...
@@ -82,9 +82,9 @@
SELECT count(1)
SELECT count(1)
FROM ag_mkt_schedule_task_tracking
FROM ag_mkt_schedule_task_tracking
WHERE practitioner_id = #{practitionerId,jdbcType=BIGINT}
WHERE practitioner_id = #{practitionerId,jdbcType=BIGINT}
AND to_days(created_at) = to_days(now())
AND task_time_from
<
STR_TO_DATE(#{taskTimeEnd,jdbcType=VARCHAR}, '%H:%i:%s')
AND task_time_from
<
STR_TO_DATE(#{taskTimeEnd,jdbcType=VARCHAR}, '%H:%i:%s')
AND task_time_end
>
STR_TO_DATE(#{taskTimeFrom,jdbcType=VARCHAR}, '%H:%i:%s')
AND task_time_end
>
STR_TO_DATE(#{taskTimeFrom,jdbcType=VARCHAR}, '%H:%i:%s')
</select>
</select>
<select
id=
"querySaleRecuitScoreFYC"
resultType=
"com.yd.dal.entity.practitioner.PersonalPEPScore"
>
<select
id=
"querySaleRecuitScoreFYC"
resultType=
"com.yd.dal.entity.practitioner.PersonalPEPScore"
>
...
@@ -201,4 +201,9 @@
...
@@ -201,4 +201,9 @@
delete from ag_mkt_schedule_task_tracking where id=#{scheduleTrackId,jdbcType=BIGINT}
delete from ag_mkt_schedule_task_tracking where id=#{scheduleTrackId,jdbcType=BIGINT}
</delete>
</delete>
<select
id=
"queryNameByPractitionerId"
resultType=
"String"
>
SELECT p.name from ag_acl_practitioner p
where p.id = #{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