management/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TAgentController.java
@@ -158,7 +158,11 @@ int count = tAgentService.selectCount(new EntityWrapper<TAgent>().eq("provinceName", split1[0]).eq("cityName",split1[1])); if(count>0){ return new SuccessTip(500,"该代理商已存在!"); } tAgent.setPrincipal(tAgent.getPrincipal().replace(" ","")); String[] split = tAgent.getAreaId().split("/"); // 查询省市 @@ -219,6 +223,7 @@ @RequestMapping(value = "/update") @ResponseBody public Object update(TAgent tAgent) { tAgent.setPrincipal(tAgent.getPrincipal().replace(" ","")); tAgentService.updateById(tAgent); return SUCCESS_TIP; }