Commit 09755791 by hongzhong

0000945: 经纪人维护页面添加字段,当经纪人电子报聘通过审核后,系统自动同步报聘信息

parent 908c7e7f
...@@ -885,6 +885,11 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe ...@@ -885,6 +885,11 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
} }
} }
resp.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000"))); resp.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000")));
//把被育成人也添加进来
practitionerIdList = new ArrayList<>();
practitionerIdList.add(practitionerId);
List<TeamMemberDetail> raiseList = aclPractitionerDALService.queryTeamMemberDetailRaiseList(practitionerIdList);
teamMemberList.addAll(raiseList);
List<TeamMemberDetail> lastList = new ArrayList<>(); List<TeamMemberDetail> lastList = new ArrayList<>();
getTeamMemberDetails(teamMemberList,lastList,"2"); getTeamMemberDetails(teamMemberList,lastList,"2");
......
...@@ -88,4 +88,6 @@ public interface AclPractitionerMapper { ...@@ -88,4 +88,6 @@ public interface AclPractitionerMapper {
List<PractitionerInfo> findPractitionerInfoByMobileList(List<String> mobileList); List<PractitionerInfo> findPractitionerInfoByMobileList(List<String> mobileList);
List<PayScaleInfo> queryEGHistorySalaryPDFByPractitionerId(Long practitionerId); List<PayScaleInfo> queryEGHistorySalaryPDFByPractitionerId(Long practitionerId);
}
public List<TeamMemberDetail> queryTeamMemberDetailRaiseList(List<Long> practitionerIdList);
}
...@@ -215,4 +215,6 @@ public interface AclPractitionerDALService { ...@@ -215,4 +215,6 @@ public interface AclPractitionerDALService {
水平越权处理,从token中获取当前用户(手机号),然后根据客户id查看是否有权限,查不到数据则说明没有权限 水平越权处理,从token中获取当前用户(手机号),然后根据客户id查看是否有权限,查不到数据则说明没有权限
*/ */
List<AclCustomer> getAclCustomers(Long practitionerId,Long flag); List<AclCustomer> getAclCustomers(Long practitionerId,Long flag);
List<TeamMemberDetail> queryTeamMemberDetailRaiseList(List<Long> practitionerIdList);
} }
...@@ -304,4 +304,9 @@ public class AclPractitionerDALServiceImpl implements AclPractitionerDALService ...@@ -304,4 +304,9 @@ public class AclPractitionerDALServiceImpl implements AclPractitionerDALService
} }
return null; return null;
} }
@Override
public List<TeamMemberDetail> queryTeamMemberDetailRaiseList(List<Long> practitionerIdList) {
return aclPractitionerMapper.queryTeamMemberDetailRaiseList(practitionerIdList);
}
} }
...@@ -1858,4 +1858,55 @@ ...@@ -1858,4 +1858,55 @@
where p.id = #{practitionerId} where p.id = #{practitionerId}
</select> </select>
<select id="queryTeamMemberDetailRaiseList" resultMap="teamMemberDetail">
select
p.id,
p.name,
p.mobile_no,
s.drop_option_code practitionerLevel,
s.drop_option_name practitionerTitle,
b.branch_name,
c.name deptName,
sys.name system,
(select name from ag_acl_practitioner_subordinate_system s where s.id=p.s1_id) s1system,
(select name from ag_acl_practitioner_subordinate_system s where s.id=p.s2_id) s2system,
(select name from ag_acl_practitioner_subordinate_system s where s.id=p.s3_id) s3system,
p1.name mentor,
p2.name introducer,
case when p.gender=1 then '男' else '女' end gender,
TIMESTAMPDIFF(YEAR, p.practitioner_birthdate, CURDATE()) age,
p.practitioner_birthdate,
c.code_name educationLevel,
p.province_name province,
p.city_name city,
p.id_type,
p.id_no,
p.effective_start_date,
p.practitioner_reg_no,
sys.system_type as systemType,sys.owner_practitioner_id as ownerPractitionerId,
p.subordinate_system_id sId
from
(select
id,name,mobile_no,gender,practitioner_birthdate,province_name,city_name,id_type,id_no,effective_start_date,
subordinate_system_id,insurer_branch_id,mentor_id,introducer_id,practitioner_reg_no,education_level,s1_id,s3_id,s2_id,dept_id,raise_id
from ag_acl_practitioner
where raise_id in
<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
#{item}
</foreach>
) p
left join ag_acl_practitioner_subordinate_system sys on p.subordinate_system_id = sys.id
left join
(select t1.practitioner_id, o.drop_option_name, o.drop_option_code
from ag_acl_practitioner_setting t1 left join ag_md_drop_options o on t1.practitioner_level = o.id
)s on p.id = s.practitioner_id
left join ag_acl_insurer_branch b on p.insurer_branch_id = b.id
left join ag_acl_insurer_branch_dept c on p.dept_id = c.id
left join ag_acl_practitioner p1 on p.mentor_id = p1.id
left join ag_acl_practitioner p2 on p.introducer_id = p2.id
left join (select * from ag_md_code where code_type = 'EducationLevel') c on p.education_level = c.code_code
</select>
</mapper> </mapper>
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