Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

系统管理->用户管理->导出(导入)不支持角色分配 #3568

Closed
falconbin opened this issue Mar 31, 2022 · 1 comment
Closed

系统管理->用户管理->导出(导入)不支持角色分配 #3568

falconbin opened this issue Mar 31, 2022 · 1 comment

Comments

@falconbin
Copy link

falconbin commented Mar 31, 2022

版本号:

3.0

问题描述:

系统管理->用户管理->导出(导入)不支持角色分配

截图&代码:

导出的excel表格里没有角色字段:
image

导入的用户没有角色:
image

友情提示(为了提高issue处理效率):

  • 未按格式要求发帖,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 针对问题请说明是Online在线功能(需说明用的主题模板),还是生成的代码功能;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;

解决方法:

给entity\SysUser添加角色字段,对应excel表格里新添加的一列(角色), 然后导入的时候调用SysUserService里的saveUser方法。
image
现在调用的是save方法,不支持保存角色:
image

@zhangdaiscott
Copy link
Member

默认没做这个逻辑,如果想做的话,用户和部门关系也没导入。
这个需求自己二开吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants