|
|
@ -70,14 +70,11 @@ public class PartyMemberLeadServiceImpl implements PartyMemberLeadService { |
|
|
|
@DataSource(value = DataSourceConstant.EVALUATION_INDEX,datasourceNameFromArg = true) |
|
|
|
@Override |
|
|
|
public FineExampleResultDTO fineExample(FineExampleFormDTO fineExampleFormDTO) { |
|
|
|
String customerId = fineExampleFormDTO.getCustomerId(); |
|
|
|
String areaCode = null; |
|
|
|
if(StringUtils.isBlank(customerId)){ |
|
|
|
ScreenCustomerAgencyDTO agencyInfo = customerAgencyDao.selectByAgencyId(fineExampleFormDTO.getAgencyId()); |
|
|
|
if(null == agencyInfo) throw new RenException("未找到对应的机关"); |
|
|
|
customerId = agencyInfo.getCustomerId(); |
|
|
|
areaCode = agencyInfo.getAreaCode(); |
|
|
|
} |
|
|
|
ScreenCustomerAgencyDTO agencyInfo = customerAgencyDao.selectByAgencyId(fineExampleFormDTO.getAgencyId()); |
|
|
|
if(null == agencyInfo) throw new RenException("未找到对应的机关"); |
|
|
|
String customerId = agencyInfo.getCustomerId(); |
|
|
|
String areaCode = agencyInfo.getAreaCode(); |
|
|
|
|
|
|
|
Result<List<String>> crmResponse = operCrmOpenFeignClient.getAllSubCustomerIds(customerId); |
|
|
|
List<String> subCustomers; |
|
|
|
if(null == crmResponse || !crmResponse.success()) |
|
|
|