| | |
| | | |
| | | @RequestMapping("/taxi") |
| | | public String taxi(String price, Model model) { |
| | | model.addAttribute("json", new JSONObject()); |
| | | if(ToolUtil.isNotEmpty(price)){ |
| | | price = Base64.decodeStr(price); |
| | | JSONObject json1 = JSONObject.fromObject(price); |
| | |
| | | } |
| | | 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, "不能重复添加城市"); |
| | | } |
| | |
| | | } |
| | | 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 && !systemPriceCity.getId().equals(one.getId())){ |
| | | return new ErrorTip(500, "不能重复添加城市"); |
| | | } |