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
57e688fc
Commit
57e688fc
authored
Oct 27, 2021
by
hongzhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ydlife 我的团队,团队成员登录查询出被辅导的人员信息
parent
a32734f4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
2 deletions
+32
-2
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
+21
-2
yd-api/src/main/java/com/yd/dal/entity/customer/practitioner/PractitionerInfo.java
+9
-0
yd-api/src/main/resources/mapper/customer/AclPractitionerMapper.xml
+2
-0
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
View file @
57e688fc
...
@@ -2865,8 +2865,18 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
...
@@ -2865,8 +2865,18 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
}
}
// 3.通过姓名查询手机号
// 3.通过姓名查询手机号
List
<
PractitionerInfo
>
practitionerInfoList
=
aclPractitionerDALService
.
findPractitionerInfoByMobileList
(
mobileList
);
List
<
PractitionerInfo
>
practitionerInfoListAll
=
aclPractitionerDALService
.
findPractitionerInfoByMobileList
(
mobileList
);
// 判断当前经纪人是否为团队长
List
<
PractitionerInfo
>
practitionerInfoList
=
new
ArrayList
<>();
int
iCount
=
aclPractitionerDALService
.
isTeamLeader
(
practitionerId
);
if
(
iCount
==
0
)
{
//如果登录人员不是团队长,则过滤的辅导人不是当前登录人员的数据
for
(
PractitionerInfo
item
:
practitionerInfoListAll
)
{
if
(
null
!=
practitionerId
&&
null
!=
item
.
getMentorId
()
&&
practitionerId
.
equals
(
item
.
getMentorId
())){
practitionerInfoList
.
add
(
item
);
}
}
}
for
(
SubordinateSystemMemberInfoE
infoE
:
subordinateSystemMemberInfoEList
)
{
for
(
SubordinateSystemMemberInfoE
infoE
:
subordinateSystemMemberInfoEList
)
{
for
(
PractitionerInfo
item
:
practitionerInfoList
)
{
for
(
PractitionerInfo
item
:
practitionerInfoList
)
{
if
(
infoE
.
getMobileNo
().
equals
(
item
.
getMobileNo
()))
{
if
(
infoE
.
getMobileNo
().
equals
(
item
.
getMobileNo
()))
{
...
@@ -2874,6 +2884,15 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
...
@@ -2874,6 +2884,15 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
}
}
}
}
}
}
//过滤掉经纪人为空的,说明不是当前经纪人辅导的人
List
<
SubordinateSystemMemberInfoE
>
subordinateSystemMemberInfoELista
=
new
ArrayList
<>();
for
(
SubordinateSystemMemberInfoE
infoE
:
subordinateSystemMemberInfoEList
)
{
if
(
null
!=
infoE
.
getPractitionerId
()){
subordinateSystemMemberInfoELista
.
add
(
infoE
);
}
}
subordinateSystemMemberInfoEList
=
subordinateSystemMemberInfoELista
;
System
.
out
.
println
(
"看看根据手机号查询的N22"
);
System
.
out
.
println
(
"看看根据手机号查询的N22"
);
System
.
out
.
println
(
subordinateSystemMemberInfoEList
);
System
.
out
.
println
(
subordinateSystemMemberInfoEList
);
...
...
yd-api/src/main/java/com/yd/dal/entity/customer/practitioner/PractitionerInfo.java
View file @
57e688fc
...
@@ -16,6 +16,7 @@ public class PractitionerInfo {
...
@@ -16,6 +16,7 @@ public class PractitionerInfo {
private
String
practitionerRegNo
;
private
String
practitionerRegNo
;
private
Long
canSeeSalaryList
;
private
Long
canSeeSalaryList
;
private
String
mobileNo
;
private
String
mobileNo
;
private
Long
mentorId
;
//辅导人id
public
Long
getCustomerId
()
{
public
Long
getCustomerId
()
{
return
customerId
;
return
customerId
;
...
@@ -136,4 +137,12 @@ public class PractitionerInfo {
...
@@ -136,4 +137,12 @@ public class PractitionerInfo {
public
void
setMobileNo
(
String
mobileNo
)
{
public
void
setMobileNo
(
String
mobileNo
)
{
this
.
mobileNo
=
mobileNo
;
this
.
mobileNo
=
mobileNo
;
}
}
public
Long
getMentorId
()
{
return
mentorId
;
}
public
void
setMentorId
(
Long
mentorId
)
{
this
.
mentorId
=
mentorId
;
}
}
}
yd-api/src/main/resources/mapper/customer/AclPractitionerMapper.xml
View file @
57e688fc
...
@@ -1353,6 +1353,7 @@
...
@@ -1353,6 +1353,7 @@
<result
column=
"qqId"
property=
"qqId"
/>
<result
column=
"qqId"
property=
"qqId"
/>
<result
column=
"practitionerRegNo"
property=
"practitionerRegNo"
/>
<result
column=
"practitionerRegNo"
property=
"practitionerRegNo"
/>
<result
column=
"canSeeSalaryList"
property=
"canSeeSalaryList"
/>
<result
column=
"canSeeSalaryList"
property=
"canSeeSalaryList"
/>
<result
column=
"mentor_id"
property=
"mentorId"
/>
<result
column=
"mobile_no"
jdbcType=
"VARCHAR"
property=
"mobileNo"
typeHandler=
"com.yd.util.deshandler.DESTypeHandler"
/>
<result
column=
"mobile_no"
jdbcType=
"VARCHAR"
property=
"mobileNo"
typeHandler=
"com.yd.util.deshandler.DESTypeHandler"
/>
</resultMap>
</resultMap>
...
@@ -1823,6 +1824,7 @@
...
@@ -1823,6 +1824,7 @@
p.qq_id as qqId,
p.qq_id as qqId,
p.practitioner_reg_no as practitionerRegNo,
p.practitioner_reg_no as practitionerRegNo,
p.mobile_no,
p.mobile_no,
p.mentor_id mentorId,
p.can_see_salary_list as canSeeSalaryList
p.can_see_salary_list as canSeeSalaryList
from ag_acl_practitioner p
from ag_acl_practitioner p
left join ag_acl_insurer_branch b on p.insurer_branch_id = b.id
left join ag_acl_insurer_branch b on p.insurer_branch_id = b.id
...
...
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