|
楼主 |
发表于 2021-1-17 16:39:57
|
显示全部楼层
本帖最后由 malixin 于 2021-1-17 17:03 编辑
额 没有别的方法吗?之前一直是3.8的版本
2021-01-17 17:02:10 [KSQL Time]sql 执行时间:120580ms, ksql:select pm.sFID AS pm_fid,pm.sFName AS pm_fname,pm.sFCode AS pm_fcode, r, r.sCode as r_sCode, r.sName as r_sName, perm1.* from SA_OPOrg pm OPTIONAL JOIN SA_OPAuthorize au ON pm.sFID like concat(au.sOrgFID, '%') JOIN SA_OPRole r ON (au.sAuthorizeRoleID=r AND r.sValidState = 1) OPTIONAL JOIN SA_OPPermission perm1 ON (perm1.sPermissionRoleID=r and perm1.sValidState=1) WHERE pm.sValidState=1 and pm.sPersonID=:personId and pm.sOrgKindID=:kind
2021-01-17 17:02:32 [KSQL Time]sql 执行时间:18949ms, ksql:select SA_OPPerson, SA_OPPerson.sName from SA_OPPerson SA_OPPerson where SA_OPPerson.sValidState=1
|
|