回复 10# sophie
提示错误:
应该在哪里修改呢?
代码:var sql="select top 10 a.domainid, a.actiontime 审批时间,a.startnodename 流程状态,(select name from T_ACTORHIS where id=b.auditor) 审批人 ,a.attitude 备注 from (select row_number() over (order by id) num,actiontime,startnodename,attitude,domainid from T_RELATIONHIS where docid='11e3-6850-3ed4749a-aa9e-7dcb9c17871e' and startnodename<>'开始') a,(select row_number() over (order by id) num,auditor from T_RELATIONHIS where docid='11e3-6850-3ed4749a-aa9e-7dcb9c17871e' and auditor is not null) b where a.num=b.num and b.auditor is not null order by a.ACTIONTIME desc"; |