|
@ -1,6 +1,7 @@ |
|
|
package com.epmet.dataaggre.service.evaluationindex.impl; |
|
|
package com.epmet.dataaggre.service.evaluationindex.impl; |
|
|
|
|
|
|
|
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
|
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
|
|
|
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
import com.epmet.dataaggre.constant.DataSourceConstant; |
|
|
import com.epmet.dataaggre.constant.DataSourceConstant; |
|
|
import com.epmet.dataaggre.dao.evaluationindex.EvaluationIndexDao; |
|
|
import com.epmet.dataaggre.dao.evaluationindex.EvaluationIndexDao; |
|
|
import com.epmet.dataaggre.dto.datastats.form.GovrnRatioFormDTO; |
|
|
import com.epmet.dataaggre.dto.datastats.form.GovrnRatioFormDTO; |
|
@ -129,6 +130,9 @@ public class EvaluationIndexServiceImpl implements EvaluationIndexService { |
|
|
public List<ScreenCustomerAgencyDTO> getSubAgencyListByAgency(String agencyId) { |
|
|
public List<ScreenCustomerAgencyDTO> getSubAgencyListByAgency(String agencyId) { |
|
|
//1.查询agencyId对应组织信息
|
|
|
//1.查询agencyId对应组织信息
|
|
|
ScreenCustomerAgencyDTO dto = evaluationIndexDao.getByAgencyId(agencyId); |
|
|
ScreenCustomerAgencyDTO dto = evaluationIndexDao.getByAgencyId(agencyId); |
|
|
|
|
|
if (dto == null){ |
|
|
|
|
|
throw new RenException("组织信息不存在!"); |
|
|
|
|
|
} |
|
|
//2.判断客户是否存在子客户
|
|
|
//2.判断客户是否存在子客户
|
|
|
List<String> list = customerRelation.haveSubCustomer(dto.getCustomerId()); |
|
|
List<String> list = customerRelation.haveSubCustomer(dto.getCustomerId()); |
|
|
if (!CollectionUtils.isNotEmpty(list)) { |
|
|
if (!CollectionUtils.isNotEmpty(list)) { |
|
|