@ -234,6 +234,7 @@ public class SysRoleServiceImpl implements ISysRoleService {
SysRole role = BeanUtil.toBean(bo, SysRole.class);
// 新增角色信息
baseMapper.insert(role);
bo.setRoleId(role.getRoleId());
return insertRoleMenu(bo);
}
@ -284,6 +284,7 @@ public class SysUserServiceImpl implements ISysUserService, UserService {
SysUser sysUser = BeanUtil.copyProperties(user, SysUser.class);
// 新增用户信息
int rows = baseMapper.insert(sysUser);
user.setUserId(sysUser.getUserId());
// 新增用户岗位关联
insertUserPost(user);
// 新增用户与角色管理