|
@ -66,6 +66,13 @@ public class AgencyServiceImpl implements AgencyService { |
|
|
return rootAgency; |
|
|
return rootAgency; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @Description 智慧社区的tree |
|
|
|
|
|
* @Param customerId |
|
|
|
|
|
* @Param bizType |
|
|
|
|
|
* @author zxc |
|
|
|
|
|
* @date 2020/10/21 2:49 下午 |
|
|
|
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public TreeResultDTO treeByType(String customerId, String bizType) { |
|
|
public TreeResultDTO treeByType(String customerId, String bizType) { |
|
|
TreeResultDTO rootAgency = null; |
|
|
TreeResultDTO rootAgency = null; |
|
@ -141,6 +148,12 @@ public class AgencyServiceImpl implements AgencyService { |
|
|
return subAgencyList; |
|
|
return subAgencyList; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @Description 智慧社区的tree |
|
|
|
|
|
* @Param subAgencyPids |
|
|
|
|
|
* @author zxc |
|
|
|
|
|
* @date 2020/10/21 2:49 下午 |
|
|
|
|
|
*/ |
|
|
public List<TreeResultDTO> getDepartmentListByBiz(String subAgencyPids) { |
|
|
public List<TreeResultDTO> getDepartmentListByBiz(String subAgencyPids) { |
|
|
List<TreeResultDTO> subAgencyList = screenCustomerAgencyDao.selectSubAgencyListByBizType(subAgencyPids); |
|
|
List<TreeResultDTO> subAgencyList = screenCustomerAgencyDao.selectSubAgencyListByBizType(subAgencyPids); |
|
|
if (subAgencyList.size() > NumConstant.ZERO) { |
|
|
if (subAgencyList.size() > NumConstant.ZERO) { |
|
@ -157,9 +170,9 @@ public class AgencyServiceImpl implements AgencyService { |
|
|
}else { |
|
|
}else { |
|
|
List<TreeResultDTO> subAgency = new ArrayList<>(); |
|
|
List<TreeResultDTO> subAgency = new ArrayList<>(); |
|
|
if (sub.getPids().contains(ScreenConstant.COMMA)){ |
|
|
if (sub.getPids().contains(ScreenConstant.COMMA)){ |
|
|
subAgency = getDepartmentList(sub.getPids() + ScreenConstant.COMMA + sub.getValue()); |
|
|
subAgency = getDepartmentListByBiz(sub.getPids() + ScreenConstant.COMMA + sub.getValue()); |
|
|
}else { |
|
|
}else { |
|
|
subAgency = getDepartmentList(sub.getPids() + ScreenConstant.COLON + sub.getValue()); |
|
|
subAgency = getDepartmentListByBiz(sub.getPids() + ScreenConstant.COLON + sub.getValue()); |
|
|
} |
|
|
} |
|
|
sub.setChildren(subAgency); |
|
|
sub.setChildren(subAgency); |
|
|
} |
|
|
} |
|
|