|
@ -621,6 +621,21 @@ public class AgencyServiceImpl implements AgencyService { |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @Description 查询下级agencyId |
|
|
|
|
|
* @param orgId |
|
|
|
|
|
* @author zxc |
|
|
|
|
|
* @date 2021/12/9 4:42 下午 |
|
|
|
|
|
*/ |
|
|
|
|
|
@Override |
|
|
|
|
|
public List<String> getSonAgencyId(String orgId) { |
|
|
|
|
|
List<String> result = customerAgencyDao.getSonAgencyId(orgId); |
|
|
|
|
|
if (CollectionUtils.isNotEmpty(result)){ |
|
|
|
|
|
return result; |
|
|
|
|
|
} |
|
|
|
|
|
return new ArrayList<>(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
private CustomerAgencyEntity constructInsertEntity(AddAgencyV2FormDTO formDTO, CustomerAgencyDTO parent) { |
|
|
private CustomerAgencyEntity constructInsertEntity(AddAgencyV2FormDTO formDTO, CustomerAgencyDTO parent) { |
|
|
CustomerAgencyEntity insertEntity = ConvertUtils.sourceToTarget(formDTO, CustomerAgencyEntity.class); |
|
|
CustomerAgencyEntity insertEntity = ConvertUtils.sourceToTarget(formDTO, CustomerAgencyEntity.class); |
|
|
insertEntity.setOrganizationName(formDTO.getAgencyName()); |
|
|
insertEntity.setOrganizationName(formDTO.getAgencyName()); |
|
|