| | |
| | | if(!CollectionUtils.isEmpty(branchAreas)){ |
| | | List<String> branchAreaCityCodes = branchAreas.stream().map(TCrmBranchArea::getCityCode).collect(Collectors.toList()); |
| | | |
| | | long count = crmBranchAreaService.count(Wrappers.lambdaQuery(TCrmBranchArea.class).in(TCrmBranchArea::getCityCode, branchAreaCityCodes)); |
| | | if(count > 0){ |
| | | return R.fail("区域已存在"); |
| | | if(!CollectionUtils.isEmpty(branchAreaCityCodes)){ |
| | | long count = crmBranchAreaService.count(Wrappers.lambdaQuery(TCrmBranchArea.class).in(TCrmBranchArea::getCityCode, branchAreaCityCodes)); |
| | | if(count > 0){ |
| | | return R.fail("区域已存在"); |
| | | } |
| | | } |
| | | } |
| | | |