角色选项限制查询列表.sql 379 B

123456789
  1. SELECT t1.*
  2. from (
  3. SELECT DISTINCT t1.roleid, t1.optiontypeid, t2.remarks optionttypename, t3.rolename
  4. from sys_role_optionlimit t1
  5. LEFT JOIN sys_optiontype t2 ON t2.optiontypeid = t1.optiontypeid
  6. LEFT JOIN sys_role t3 ON t3.roleid = t1.roleid
  7. where t3.siteid = $siteid$
  8. and t1.roleid = $roleid$
  9. ) t1