mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
处理用户新增、修改对状态的修改
This commit is contained in:
+4
@@ -64,6 +64,10 @@ public class UserSaveReqVO {
|
||||
|| (ObjectUtil.isAllNotEmpty(password)); // 新增时,必须都传递 password
|
||||
}
|
||||
|
||||
@Schema(description = "帐号状态(0正常 1停用)")
|
||||
@NotNull(message = "账号状态不能空")
|
||||
private Integer status;
|
||||
|
||||
private Long organId;
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -107,7 +107,7 @@ public class AdminUserServiceImpl implements AdminUserService {
|
||||
// 插入用户
|
||||
AdminUserDO user = BeanUtils.toBean(createReqVO, AdminUserDO.class);
|
||||
user.setOrganId(createReqVO.getOrganId());
|
||||
user.setStatus(CommonStatusEnum.ENABLE.getStatus()); // 默认开启
|
||||
//user.setStatus(CommonStatusEnum.ENABLE.getStatus()); // 默认开启
|
||||
user.setPassword(encodePassword(createReqVO.getPassword())); // 加密密码
|
||||
|
||||
String pinyinFull = PinYinUtils.convertToPinyin(user.getNickname());
|
||||
|
||||
Reference in New Issue
Block a user