用户新增编辑更改姓名+工号字段
This commit is contained in:
+3
@@ -201,6 +201,8 @@ public class SysUserController {
|
||||
user.setPhone(phone);
|
||||
}
|
||||
|
||||
user.setNameWorkNo(user.getRealname() + "(" + user.getWorkNo() + ")");
|
||||
|
||||
// 密码加盐
|
||||
String password = CommonUtils.decryptBtRsaPriKey(user.getPassword(), rsaPrivateKey);
|
||||
user.setCreateTime(new Date());//设置创建时间
|
||||
@@ -229,6 +231,7 @@ public class SysUserController {
|
||||
return Result.error(INEXISTENCE);
|
||||
}else {
|
||||
SysUser user = getSysUser(jsonObject, rsaPrivateKey, sysUser);
|
||||
user.setNameWorkNo(user.getRealname() + "(" + user.getWorkNo() + ")");
|
||||
// 修改用户走一个service 保证事务
|
||||
sysUserService.editUser(user, roles, departs);
|
||||
return Result.OK(OPTION_SUCCESS);
|
||||
|
||||
Reference in New Issue
Block a user