Commit 08222b30 by guojuxing

修改职位

parent 299a63c0
......@@ -43,6 +43,17 @@ public interface UserApiService {
ServiceResponse<Void> updateOperationUser(Integer userId, String userName);
/**
* 修改职位(个人资料)
* @Title: updateUserPosition

* @Description:

* @author guojuxing
* @param userId
* @param userPosition

* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>


*/
ServiceResponse<Void> updateUserPosition(Integer userId, Integer userPosition);
/**
* 新增超级用户
* @Title: saveAdmin

* @Description:
......
......@@ -148,6 +148,15 @@ public class UserApiServiceImpl implements UserApiService {
}
@Override
public ServiceResponse<Void> updateUserPosition(Integer userId, Integer userPosition) {
UserDTO userDTO = new UserDTO();
userDTO.setUserId(userId);
userDTO.setUserPosition(userPosition);
userService.editUser(userDTO);
return ServiceResponse.success();
}
@Override
public ServiceResponse<Integer> saveAdmin(UserDTO userDTO) {
//valid param
ServiceResponse paramResult = ValidUtil.allCheckValidate(userDTO, UserDTO.SaveUserValid.class);
......
......@@ -282,6 +282,14 @@ public class UserController {
UserDetailUtils.getUserDetail().getUserInfo().getPhoneNumber());
}
@RequestMapping("/edit-user-position")
public RestResponse editUserPosition(Integer userPosition) {
return OperationResultUtils.operationResult(userApiService
.updateUserPosition(UserDetailUtils.getUserDetail().getUserId(), userPosition),
"修改职位",
UserDetailUtils.getUserDetail().getUserInfo().getPhoneNumber());
}
/**
* 逻辑删除用户对应分组数据
*
......
......@@ -43,6 +43,11 @@ public class LoginUserVO implements Serializable{
*/
private String companyName;
/**
* 职位 1:区域经理、2:线下运营、3:电商运营、4:IT专员、5:数据专员 子管理员必填
*/
private Integer userPosition;
public Integer getUserId() {
return userId;
}
......@@ -98,4 +103,13 @@ public class LoginUserVO implements Serializable{
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
public Integer getUserPosition() {
return userPosition;
}
public LoginUserVO setUserPosition(Integer userPosition) {
this.userPosition = userPosition;
return this;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment