|
|
@ -870,10 +870,18 @@ public class AgencyServiceImpl implements AgencyService { |
|
|
|
return customerAgencyDao.getCommunityList(tokenDto.getCustomerId(), agencyId); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<CommunityListResultDTO> communityListByCustomerId(TokenDto tokenDto) { |
|
|
|
if (null == tokenDto.getCustomerId()) { |
|
|
|
throw new EpmetException("未查询到客户信息"); |
|
|
|
} |
|
|
|
return customerAgencyDao.communityListByCustomerId(tokenDto.getCustomerId()); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<OrgListTreeResultDTO> getOrgTreeListByCustomerId(TokenDto tokenDto) { |
|
|
|
if (null == tokenDto.getCustomerId()) { |
|
|
|
throw new EpmetException("未查询到工作人员信息"); |
|
|
|
throw new EpmetException("未查询到客户信息"); |
|
|
|
} |
|
|
|
List<OrgListTreeResultDTO> list = customerAgencyDao.getOrgTreeListByCustomerId(tokenDto.getCustomerId()); |
|
|
|
return NodeTreeUtils.build(list); |
|
|
|