| | |
| | | List<CompanyCity> areaCode = companyCityService.selectList(new EntityWrapper<CompanyCity>().eq("areaCode", districtCode)); |
| | | companyId = areaCode.stream().map(CompanyCity::getCompanyId).collect(Collectors.toList()); |
| | | } |
| | | if(ToolUtil.isNotEmpty(cityCode) && (null == companyId ||companyId.isEmpty())){ |
| | | if(ToolUtil.isNotEmpty(cityCode) && (null == companyId || companyId.isEmpty())){ |
| | | List<CompanyCity> areaCode = companyCityService.selectList(new EntityWrapper<CompanyCity>().eq("cityCode", cityCode).isNull("areaCode")); |
| | | companyId = areaCode.stream().map(CompanyCity::getCompanyId).collect(Collectors.toList()); |
| | | } |
| | | if(ToolUtil.isNotEmpty(provinceCode) && (null == companyId ||companyId.isEmpty())){ |
| | | if(ToolUtil.isNotEmpty(provinceCode) && (null == companyId || companyId.isEmpty())){ |
| | | List<CompanyCity> areaCode = companyCityService.selectList(new EntityWrapper<CompanyCity>().eq("provinceCode", provinceCode).isNull("cityCode").isNull("areaCode")); |
| | | companyId = areaCode.stream().map(CompanyCity::getCompanyId).collect(Collectors.toList()); |
| | | } |
| | | if(null != companyId && !companyId.isEmpty()){ |
| | | List<Company> companies = companyService.selectBatchIds(companyId); |
| | | List<Map<String, Object>> collect = companies.stream().map(s -> { |
| | | List<Map<String, Object>> collect = companies.stream().filter(s->0 == s.getState() && 3 != s.getFlag()).map(s -> { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", s.getId()); |
| | | map.put("name", s.getName()); |