Commit 85c77b5a by guojuxing

编辑超级管理员数据接口修改

parent 9c1b8b7b
......@@ -160,11 +160,11 @@ public class UserApiServiceImpl implements UserApiService {
public ServiceResponse<Void> editAdmin(UserDTO userDTO) {
//超级官员
TabSysUser adminUser = userService
.getUserByEnterpriseId(UserDetailUtils.getUserDetail().getEnterpriseInfo().getEnterpriseId());
.getUserByEnterpriseId(userDTO.getEnterpriseId());
if (adminUser == null) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "超级管理员不存在,操作有误");
}
if (userDTO.getPasswordType().intValue() == 2) {
if (userDTO.getPasswordType() != null && userDTO.getPasswordType().intValue() == 2) {
//如果是自定义密码
if (StringUtils.isBlank(userDTO.getPassword())) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "密码为空,操作有误");
......
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