|
@@ -436,7 +436,8 @@ public class SysUserServiceImpl extends JoinServiceImpl<SysUserMapper, SysUser>
|
|
|
* @param user 用户对象
|
|
|
*/
|
|
|
public void insertUserRoleUpdate(SysUserUpdate user) {
|
|
|
- this.insertUserRole(user.getId(), user.getRoleIds());
|
|
|
+ Long [] arr=(Long[]) user.getRoles().stream().map(SysRole::getRoleId).toArray();
|
|
|
+ this.insertUserRole(user.getId(), arr);
|
|
|
}
|
|
|
|
|
|
/**
|