| | |
| | | @ResponseBody |
| | | public Object add(TCompany tCompany,@RequestParam String subArr,String account,String password) { |
| | | //判断账号是否已存在 |
| | | int count = userService.selectCount(new EntityWrapper<User>().eq("account", account)); |
| | | int count = userService.selectCount(new EntityWrapper<User>().eq("account", account).ne("status",3)); |
| | | if (count > 0){ |
| | | return "error"; |
| | | } |
| | |
| | | @ResponseBody |
| | | public Object addFranchisee(TCompany tCompany,String account,String password) { |
| | | //判断账号是否已存在 |
| | | int count = userService.selectCount(new EntityWrapper<User>().eq("account", account)); |
| | | int count = userService.selectCount(new EntityWrapper<User>().eq("account", account).ne("status",3)); |
| | | if (count > 0){ |
| | | return "error"; |
| | | } |
| | |
| | | if (SinataUtil.isNotEmpty(account) && SinataUtil.isNotEmpty(password)){ |
| | | if (!user.getAccount().equals(account)){ |
| | | //判断账号是否已存在 |
| | | int count = userService.selectCount(new EntityWrapper<User>().eq("account", account)); |
| | | int count = userService.selectCount(new EntityWrapper<User>().eq("account", account).ne("flag",3)); |
| | | if (count > 0){ |
| | | return "error"; |
| | | } |
| | |
| | | User user = userService.selectById(userId); |
| | | if (!user.getAccount().equals(account)){ |
| | | //判断账号是否已存在 |
| | | int count = userService.selectCount(new EntityWrapper<User>().eq("account", account)); |
| | | int count = userService.selectCount(new EntityWrapper<User>().eq("account", account).ne("status",3)); |
| | | if (count > 0){ |
| | | return "error"; |
| | | } |