diff --git a/src/main/java/com/bonus/imgTool/model/Role.java b/src/main/java/com/bonus/imgTool/model/Role.java index c36fb2e..615c364 100644 --- a/src/main/java/com/bonus/imgTool/model/Role.java +++ b/src/main/java/com/bonus/imgTool/model/Role.java @@ -58,5 +58,9 @@ public class Role extends PageEntity { * 角色级别 */ private Integer level; + /** + * 角色级别名称 + */ + private String levelName; } diff --git a/src/main/java/com/bonus/imgTool/system/controller/UserController.java b/src/main/java/com/bonus/imgTool/system/controller/UserController.java index 3a11f06..5c0cdab 100644 --- a/src/main/java/com/bonus/imgTool/system/controller/UserController.java +++ b/src/main/java/com/bonus/imgTool/system/controller/UserController.java @@ -100,14 +100,14 @@ public class UserController { try { SysUser u = userService.getUser(data.getData().getLoginName()); if (u != null) { - return ServerResponse.createErroe("登录名"+data.getData().getLoginName() + "已存在"); + return ServerResponse.createErroe("登录账号"+data.getData().getLoginName() + "已存在"); } - if(StringHelper.isNotEmpty(data.getData().getPhone())){ + /* if(StringHelper.isNotEmpty(data.getData().getPhone())){ SysUser u2 = userService.getPhone(data.getData().getPhone()); if (u2 != null) { return ServerResponse.createErroe("手机号"+data.getData().getPhone() + "已存在"); } - } + }*/ ServerResponse response=userService.saveUser(data.getData()); return response; }catch (Exception e){ diff --git a/src/main/resources/mappers/system/UserMapper.xml b/src/main/resources/mappers/system/UserMapper.xml index d18dfee..e001215 100644 --- a/src/main/resources/mappers/system/UserMapper.xml +++ b/src/main/resources/mappers/system/UserMapper.xml @@ -73,7 +73,7 @@
- +
@@ -29,7 +29,7 @@
- +
@@ -44,12 +44,12 @@
-
+
@@ -59,7 +59,15 @@
-
+
+ +
+ +
+
+ + -
+ -
+
diff --git a/src/main/resources/static/pages/user/child/userFormTemp.html b/src/main/resources/static/pages/user/child/userFormTemp.html index a8e5222..14cd903 100644 --- a/src/main/resources/static/pages/user/child/userFormTemp.html +++ b/src/main/resources/static/pages/user/child/userFormTemp.html @@ -21,15 +21,16 @@
- +
- +
@@ -38,69 +39,80 @@
-
- - +
+ +
-
- -
-
    -
    -
    +
    -
    - - - - - - - - -
    - +
    +
    -
    -
    - -
    - -
    -
    - - -
    - -
    - - -
    -
    - -
    - -
    - - -
    -
    + + + + + + + + + + + + + + + +
    -
    - + - + diff --git a/src/main/resources/static/pages/user/userMge.html b/src/main/resources/static/pages/user/userMge.html index 7866a99..435b9dc 100644 --- a/src/main/resources/static/pages/user/userMge.html +++ b/src/main/resources/static/pages/user/userMge.html @@ -22,11 +22,11 @@
    - +
    -
    +
    - - +