作者 yangfu

机会权限

@@ -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