Commit 57e688fc by hongzhong

ydlife 我的团队,团队成员登录查询出被辅导的人员信息

parent a32734f4
......@@ -2865,8 +2865,18 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
}
// 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 (PractitionerInfo item : practitionerInfoList) {
if (infoE.getMobileNo().equals(item.getMobileNo())) {
......@@ -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(subordinateSystemMemberInfoEList);
......
......@@ -16,6 +16,7 @@ public class PractitionerInfo {
private String practitionerRegNo;
private Long canSeeSalaryList;
private String mobileNo;
private Long mentorId;//辅导人id
public Long getCustomerId() {
return customerId;
......@@ -136,4 +137,12 @@ public class PractitionerInfo {
public void setMobileNo(String mobileNo) {
this.mobileNo = mobileNo;
}
public Long getMentorId() {
return mentorId;
}
public void setMentorId(Long mentorId) {
this.mentorId = mentorId;
}
}
......@@ -1353,6 +1353,7 @@
<result column="qqId" property="qqId" />
<result column="practitionerRegNo" property="practitionerRegNo" />
<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"/>
</resultMap>
......@@ -1823,6 +1824,7 @@
p.qq_id as qqId,
p.practitioner_reg_no as practitionerRegNo,
p.mobile_no,
p.mentor_id mentorId,
p.can_see_salary_list as canSeeSalaryList
from ag_acl_practitioner p
left join ag_acl_insurer_branch b on p.insurer_branch_id = b.id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment