|
楼主 |
发表于 2017-4-24 16:39:57
|
显示全部楼层
本帖最后由 qweasdzxc 于 2017-4-24 16:42 编辑
SA_OPOrg.sParent IS NULL 这个条件一直有
2017-04-24 16:38:57 [SQL Time]sql 执行时间:1ms, exec KSQL: SELECT SA_OPOrg.* FROM SA_OPOrg SA_OPOrg WHERE (SA_OPOrg.sValidState >= 0) AND ((SA_OPOrg.sValidState=1) AND (SA_OPOrg.sParent IS NULL)) ORDER BY SA_OPOrg.sSequence asc LIMIT 0, -1
--> sql:SELECT SA_OPOrg.sID AS SA_OPOrg, SA_OPOrg.SADDRESS AS sAddress, SA_OPOrg.SCODE AS sCode, SA_OPOrg.SDESCRIPTION AS sDescription, SA_OPOrg.SFCODE AS sFCode, SA_OPOrg.sFID AS sFID, SA_OPOrg.sFName AS sFName, SA_OPOrg.SFAX AS sFax, SA_OPOrg.SLEVEL AS sLevel, SA_OPOrg.SLONGNAME AS sLongName, SA_OPOrg.SNAME AS sName, SA_OPOrg.SNODEKIND AS sNodeKind, SA_OPOrg.SORGKINDID AS sOrgKindID, SA_OPOrg.sParent AS sParent, SA_OPOrg.SPERSONID AS sPersonID, SA_OPOrg.SPHONE AS sPhone, SA_OPOrg.SSEQUENCE AS sSequence, SA_OPOrg.SVALIDSTATE AS sValidState, SA_OPOrg.SWXDEPTID AS sWxDeptID, SA_OPOrg.SZIP AS sZip, SA_OPOrg.VERSION AS version FROM SA_OPOrg SA_OPOrg WHERE (SA_OPOrg.SVALIDSTATE >= ?) AND ( (SA_OPOrg.SVALIDSTATE = ?) AND (SA_OPOrg.sParent IS NULL) ) ORDER BY SA_OPOrg.SSEQUENCE ASC
--> binds:[0, 1]
2017-04-24 16:39:00 [SQL Time]sql 执行时间:1ms, exec KSQL: SELECT SA_OPOrg.* FROM SA_OPOrg SA_OPOrg WHERE (SA_OPOrg.sValidState >= 0) AND ((SA_OPOrg.sValidState=1) AND (SA_OPOrg.sParent IS NULL) AND (SA_OPOrg.sFCode = '/JUSTEP/dept01' OR SA_OPOrg.sFCode LIKE '/JUSTEP/dept01/%')) ORDER BY SA_OPOrg.sSequence asc LIMIT 0, -1
--> sql:SELECT SA_OPOrg.sID AS SA_OPOrg, SA_OPOrg.SADDRESS AS sAddress, SA_OPOrg.SCODE AS sCode, SA_OPOrg.SDESCRIPTION AS sDescription, SA_OPOrg.SFCODE AS sFCode, SA_OPOrg.sFID AS sFID, SA_OPOrg.sFName AS sFName, SA_OPOrg.SFAX AS sFax, SA_OPOrg.SLEVEL AS sLevel, SA_OPOrg.SLONGNAME AS sLongName, SA_OPOrg.SNAME AS sName, SA_OPOrg.SNODEKIND AS sNodeKind, SA_OPOrg.SORGKINDID AS sOrgKindID, SA_OPOrg.sParent AS sParent, SA_OPOrg.SPERSONID AS sPersonID, SA_OPOrg.SPHONE AS sPhone, SA_OPOrg.SSEQUENCE AS sSequence, SA_OPOrg.SVALIDSTATE AS sValidState, SA_OPOrg.SWXDEPTID AS sWxDeptID, SA_OPOrg.SZIP AS sZip, SA_OPOrg.VERSION AS version FROM SA_OPOrg SA_OPOrg WHERE (SA_OPOrg.SVALIDSTATE >= ?) AND ( (SA_OPOrg.SVALIDSTATE = ?) AND (SA_OPOrg.sParent IS NULL) AND ( (SA_OPOrg.SFCODE = ?) OR (SA_OPOrg.SFCODE LIKE ?) ) ) ORDER BY SA_OPOrg.SSEQUENCE ASC
--> binds:[0, 1, /JUSTEP/dept01, /JUSTEP/dept01/%]
|
|