Commit 7ce454ef by jianan

普通经纪人/辅导人看不到战队的业绩

parent 000dabd2
......@@ -2387,10 +2387,6 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
SubordinateSystemMemberQueryResponseVO responseVO = new SubordinateSystemMemberQueryResponseVO();
Long practitionerId = requestVO.getPractitionerId();
if(practitionerId != null){
List<AclPractitionerSubordinateSystem> subordinateSystemList = aclPractitionerSubordinateSystemDALService.findByOwner(practitionerId);
if(!subordinateSystemList.isEmpty() && subordinateSystemList.get(0) != null){
AclPractitionerSubordinateSystem subordinateSystem = subordinateSystemList.get(0);
Long subordinateSystemId = subordinateSystem.getId();
Integer time = requestVO.getTime();
time = (time == null) ? 1 : time;
String mobileNo = aclPractitionerDALService.findMobileNoByPractitionerId(practitionerId);
......@@ -2418,19 +2414,22 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
// 判断当前经纪人是否为团队长
int count = aclPractitionerDALService.isTeamLeader(practitionerId);
if (count > 0) {
List<AclPractitionerSubordinateSystem> subordinateSystemList = aclPractitionerSubordinateSystemDALService.findByOwner(practitionerId);
if (CollectionUtils.isNotEmpty(subordinateSystemList)) {
AclPractitionerSubordinateSystem subordinateSystem = subordinateSystemList.get(0);
Long subordinateSystemId = subordinateSystem.getId();
statisticInfo.setCompletionRate(getCompletionRate(null,subordinateSystemId,fycSum,time));
responseVO.setId(subordinateSystemId);
}
responseVO.setSubordinateSystemName(subordinateSystem.getName());
responseVO.setContactName(subordinateSystem.getContactName());
responseVO.setContactNo(subordinateSystem.getContactNo());
responseVO.setRemark(subordinateSystem.getRemark());
}
}
responseVO.setStatisticInfo(statisticInfo);
responseVO.setMemberInfoList(memberInfoList);
responseVO.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000")));
}else{
responseVO.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("830017")));
}
}else{
String[] params = {"practitionerId"};
responseVO.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("610001", params)));
......@@ -2547,7 +2546,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
/**
* 银盾在线查询体系中的成员信息
* @param memberInfoMap 成员类型
* @param subordinateSystemId 体系id
* @param practitionerId
* @param time 时间
*/
private void getMemberInfoForOnLine(Map<String,SubordinateSystemMemberInfo> memberInfoMap, Long practitionerId, Integer time) {
......
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