经跟客户沟通,该问题已解决,解决方案如下:- var userid =getWebUser().getId();
- var sql="SELECT * FROM TLK_FM_DISPATCH where id in(select doc.id from GALLOPSOA.T_DOCUMENT doc,GALLOPSOA.T_FLOW_INTERVENTION pen,GALLOPSOA.T_FLOWSTATERT fs,GALLOPSOA.T_NODERT node,GALLOPSOA.T_ACTORRT actor where doc.id = pen.id and doc.id =fs.docid and fs.id =node.flowstatert_id and node.id = actor.nodert_id and doc.issubdoc is null and doc.parent is null and doc.state is not null and doc.statelabel is not null and actor.actorid ='";
- sql += userid;
- sql += "' UNION select doc.id from GALLOPSOA.T_DOCUMENT doc,GALLOPSOA.T_ACTORHIS ahis,GALLOPSOA.T_RELATIONHIS rhis,GALLOPSOA.T_FLOW_INTERVENTION pen,GALLOPSOA.T_FLOWSTATERT fs where doc.id=rhis.docid and rhis.id = ahis.nodehis_id and doc.id = pen.id and doc.id =fs.docid and doc.issubdoc is null and doc.parent is null and doc.state is not null and doc.statelabel is not null and ahis.actorid='";
- sql += userid ;
- sql +="')";
- sql;
复制代码 |