|
|
@@ -253,16 +253,17 @@ public class CustomerCompanyServiceImpl implements CustomerCompanyService { |
|
|
|
IPage<CustomerCompany> page = new Page<>(current, size);
|
|
|
|
QueryWrapper<CustomerCompany> wrapper = new QueryWrapper<>();
|
|
|
|
try {
|
|
|
|
//根据服务商Id与企业Id的对应情况查企业Id
|
|
|
|
QueryWrapper<CustomerServiceProviderEnterprise> tempWrapper = new QueryWrapper<>();
|
|
|
|
tempWrapper.eq("service_provider_id", serviceProviderId);
|
|
|
|
List<CustomerServiceProviderEnterprise> temp = customerServiceProviderEnterpriseMapper.selectList(tempWrapper);
|
|
|
|
List<String> companyIds = new ArrayList<>();
|
|
|
|
for (CustomerServiceProviderEnterprise tt : temp) {
|
|
|
|
companyIds.add(tt.getEnterpriseId());
|
|
|
|
if(!StringUtils.isEmpty(serviceProviderId)){
|
|
|
|
//根据服务商Id与企业Id的对应情况查企业Id
|
|
|
|
QueryWrapper<CustomerServiceProviderEnterprise> tempWrapper = new QueryWrapper<>();
|
|
|
|
tempWrapper.eq("service_provider_id", serviceProviderId);
|
|
|
|
List<CustomerServiceProviderEnterprise> temp = customerServiceProviderEnterpriseMapper.selectList(tempWrapper);
|
|
|
|
List<String> companyIds = new ArrayList<>();
|
|
|
|
for (CustomerServiceProviderEnterprise tt : temp) {
|
|
|
|
companyIds.add(tt.getEnterpriseId());
|
|
|
|
}
|
|
|
|
wrapper.in("customer_id", companyIds);
|
|
|
|
}
|
|
|
|
wrapper.in("customer_id", companyIds);
|
|
|
|
|
|
|
|
if (status != 0) {
|
|
|
|
wrapper.eq("status", status);
|
|
|
|
}
|
|
|
|