用户修改的逻辑放到service中
This commit is contained in:
@@ -179,8 +179,6 @@ public class SysUserController extends BaseController
|
|||||||
{
|
{
|
||||||
return error("修改用户'" + user.getUserName() + "'失败,邮箱账号已存在");
|
return error("修改用户'" + user.getUserName() + "'失败,邮箱账号已存在");
|
||||||
}
|
}
|
||||||
user.setCvTemplateJson(JSONUtil.toJsonStr(user.getCvInfoDto()));
|
|
||||||
user.setWorkNatureJson(JSONUtil.toJsonStr(user.getWorkNatureDto()));
|
|
||||||
user.setUpdateBy(getUsername());
|
user.setUpdateBy(getUsername());
|
||||||
return toAjax(userService.updateUser(user));
|
return toAjax(userService.updateUser(user));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -312,6 +312,10 @@ public class SysUserServiceImpl implements ISysUserService
|
|||||||
userPostMapper.deleteUserPostByUserId(userId);
|
userPostMapper.deleteUserPostByUserId(userId);
|
||||||
// 新增用户与岗位管理
|
// 新增用户与岗位管理
|
||||||
insertUserPost(user);
|
insertUserPost(user);
|
||||||
|
|
||||||
|
user.setCvTemplateJson(JSONUtil.toJsonStr(user.getCvInfoDto()));
|
||||||
|
user.setWorkNatureJson(JSONUtil.toJsonStr(user.getWorkNatureDto()));
|
||||||
|
|
||||||
return userMapper.updateUser(user);
|
return userMapper.updateUser(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user