Ver código fonte

修改用户接口修改

gao.qiang 1 ano atrás
pai
commit
cbe16527cf

+ 2 - 1
base-system/src/main/java/com/ozs/system/service/impl/SysUserServiceImpl.java

@@ -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);
     }
 
     /**