cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/system/UserMgrController.java
@@ -205,8 +205,13 @@ // 判断账号是否重复 //Check if the account is duplicated User theUser = userService.getByAccount(user.getAccount()); if (theUser != null) { User theUser = new User(); if (user.getAccount()!=""){ theUser = userService.getByAccount(user.getAccount()); } System.out.println("=====theUser======="+theUser); if (theUser != null&&user.getAccount()!="") { throw new GunsException(BizExceptionEnum.USER_ALREADY_REG); }