diff --git a/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/SysUserServiceApi.java b/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/SysUserServiceApi.java index 5cba1c5ec..e6f3dda55 100644 --- a/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/SysUserServiceApi.java +++ b/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/SysUserServiceApi.java @@ -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); /** * 通过用户的邮箱获取用户的详细信息 diff --git a/kernel-s-system/system-business-hr/src/main/java/cn/stylefeng/roses/kernel/sys/modular/user/service/impl/SysUserServiceImpl.java b/kernel-s-system/system-business-hr/src/main/java/cn/stylefeng/roses/kernel/sys/modular/user/service/impl/SysUserServiceImpl.java index 2b90384ff..61fac5b23 100644 --- a/kernel-s-system/system-business-hr/src/main/java/cn/stylefeng/roses/kernel/sys/modular/user/service/impl/SysUserServiceImpl.java +++ b/kernel-s-system/system-business-hr/src/main/java/cn/stylefeng/roses/kernel/sys/modular/user/service/impl/SysUserServiceImpl.java @@ -792,7 +792,7 @@ public class SysUserServiceImpl extends ServiceImpl 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 impl BusinessLogUtil.setLogTitle("新增用户,用户账号:" + simpleUser.getAccount()); BusinessLogUtil.addContent("新增用户账号信息:", simpleUser.getAccount()); BusinessLogUtil.addContent("用户详细信息如下:\n", simpleUser); + + return simpleUser.getUserId(); } @Override