作者 yangfu

机会权限

... ... @@ -261,7 +261,7 @@ func getUserPermission(userCompanyid int64) (map[string]PermissionOptionObject,
Code string `orm:"column(code)"`
Opption string `orm:"column(opption)"`
}
var datasql string = fmt.Sprintf(`SELECT a.code,a.opption
var datasql string = fmt.Sprintf(`SELECT a.code,a.opption,c.id role_id
FROM role_menu AS a
JOIN user_role AS b ON a.role_id = b.role_id
JOIN role AS c ON a.role_id = c.id
... ...