正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -261,7 +261,7 @@ func getUserPermission(userCompanyid int64) (map[string]PermissionOptionObject, | @@ -261,7 +261,7 @@ func getUserPermission(userCompanyid int64) (map[string]PermissionOptionObject, | ||
261 | Code string `orm:"column(code)"` | 261 | Code string `orm:"column(code)"` |
262 | Opption string `orm:"column(opption)"` | 262 | Opption string `orm:"column(opption)"` |
263 | } | 263 | } |
264 | - var datasql string = fmt.Sprintf(`SELECT a.code,a.opption | 264 | + var datasql string = fmt.Sprintf(`SELECT a.code,a.opption,c.id role_id |
265 | FROM role_menu AS a | 265 | FROM role_menu AS a |
266 | JOIN user_role AS b ON a.role_id = b.role_id | 266 | JOIN user_role AS b ON a.role_id = b.role_id |
267 | JOIN role AS c ON a.role_id = c.id | 267 | JOIN role AS c ON a.role_id = c.id |
-
请 注册 或 登录 后发表评论