| | |
| | | } |
| | | if(null == one){ |
| | | one = systemPriceCityService.selectOne(new EntityWrapper<SystemPriceCity>().eq("areaCode", systemPriceCity.getAreaCode()) |
| | | .eq("cityCode", systemPriceCity.getCityCode()).ne("flag", 3)); |
| | | .eq("cityCode", systemPriceCity.getCityCode()).isNull("provinceCode").ne("flag", 3)); |
| | | if(null == one){ |
| | | one = systemPriceCityService.selectOne(new EntityWrapper<SystemPriceCity>().eq("areaCode", systemPriceCity.getAreaCode()) |
| | | .ne("flag", 3)); |
| | | .isNull("cityCode").isNull("provinceCode").ne("flag", 3)); |
| | | if(null != one){ |
| | | return new ErrorTip(500, "不能重复添加城市"); |
| | | } |