【8.1.8】【system】更新添加用户,返回用户的id

dev-8.1.9
stylefeng 2024-06-20 22:31:47 +08:00
parent 391f785c27
commit 65faabbebe
2 changed files with 4 additions and 2 deletions

View File

@ -188,7 +188,7 @@ public interface SysUserServiceApi {
* @author fengshuonan
* @since 2024/5/23 23:48
*/
void simpleAddUser(AddUserDTO addUserDTO, Long orgId, Long positionId);
Long simpleAddUser(AddUserDTO addUserDTO, Long orgId, Long positionId);
/**
*

View File

@ -792,7 +792,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
}
@Override
public void simpleAddUser(AddUserDTO addUserDTO, Long orgId, Long positionId) {
public Long simpleAddUser(AddUserDTO addUserDTO, Long orgId, Long positionId) {
SysUser simpleUser = SysUserCreateFactory.createSimpleAddUser(addUserDTO);
@ -813,6 +813,8 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
BusinessLogUtil.setLogTitle("新增用户,用户账号:" + simpleUser.getAccount());
BusinessLogUtil.addContent("新增用户账号信息:", simpleUser.getAccount());
BusinessLogUtil.addContent("用户详细信息如下:\n", simpleUser);
return simpleUser.getUserId();
}
@Override