" t1.requestid as taskCode,t1.currentnodeid as nodeid,d1.nodename\n"+
" t1.requestid as taskCode,t1.currentnodeid as nodeid,d1.nodename\n"+
" from workflow_requestbase t1\n"+
" from workflow_requestbase t1\n"+
" inner join workflow_base t3 on t1.workflowid = t3.id\n"+
" inner join workflow_base t3 on t1.workflowid = t3.id\n"+
" left join workflow_nodebase d1 on d1.id = t1.currentnodeid "+
" left join workflow_nodebase d1 on d1.id = t1.currentnodeid "+
" left join (select id, lastname,loginid from hrmresource where status = 1 union all select id, lastname,loginid from hrmresourcemanager ) h1 on h1.id = t1.creater\n"+
" left join (select id, lastname,loginid from hrmresource where status = 1 union all select id, lastname,loginid from hrmresourcemanager ) h1 on h1.id = t1.creater\n"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
@ -134,15 +140,15 @@ public class SendPortalDoneUtil {
BaseBeanbb=newBaseBean();
BaseBeanbb=newBaseBean();
bb.writeLog("sendTodoDataByNode");
bb.writeLog("sendTodoDataByNode");
StringticketType=center;
StringticketType=center;
Stringterminal="1";
Stringterminal="1";
StringtaskType="0";
StringtaskType="0";
StringobjectId="";
StringobjectId="";
try{
try{
intcount=0;
intcount=0;
StringcountSql=" select t2.userid,h1.loginid\n"+
StringcountSql=" select t2.userid,h1.loginid\n"+
" from workflow_requestbase t1\n"+
" from workflow_requestbase t1\n"+
" inner join workflow_currentoperator t2 on t1.requestid = t2.requestid\n"+
" inner join workflow_currentoperator t2 on t1.requestid = t2.requestid\n"+
" left join (select id, lastname,loginid from hrmresource where status = 1 union all select id,lastname,loginid from hrmresourcemanager ) h1 on h1.id = t2.userid\n"+
" left join (select id, lastname,loginid from hrmresource where status = 1 union all select id,lastname,loginid from hrmresourcemanager ) h1 on h1.id = t2.userid\n"+
@ -150,121 +156,127 @@ public class SendPortalDoneUtil {
" and ((t2.isremark = '0' and (t2.takisremark is null or t2.takisremark = 0)) or t2.isremark in ('1', '5', '8', '9', '7', '11'))\n"+
" and ((t2.isremark = '0' and (t2.takisremark is null or t2.takisremark = 0)) or t2.isremark in ('1', '5', '8', '9', '7', '11'))\n"+
" and t2.islasttimes = 1\n"+
" and t2.islasttimes = 1\n"+
" and (t2.isprocessing = '' or t2.isprocessing is null)\n"+
" and (t2.isprocessing = '' or t2.isprocessing is null)\n"+
" t1.requestid as taskCode,t1.currentnodeid as nodeid,d1.nodename\n"+
" t1.requestid as taskCode,t1.currentnodeid as nodeid,d1.nodename\n"+
" from workflow_requestbase t1\n"+
" from workflow_requestbase t1\n"+
" inner join workflow_base t3 on t1.workflowid = t3.id\n"+
" inner join workflow_base t3 on t1.workflowid = t3.id\n"+
" left join workflow_nodebase d1 on d1.id = t1.currentnodeid "+
" left join workflow_nodebase d1 on d1.id = t1.currentnodeid "+
" left join (select id, lastname,loginid from hrmresource where status = 1 union all select id, lastname,loginid from hrmresourcemanager ) h1 on h1.id = t1.creater\n"+
" left join (select id, lastname,loginid from hrmresource where status = 1 union all select id, lastname,loginid from hrmresourcemanager ) h1 on h1.id = t1.creater\n"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" inner join workflow_currentoperator t2 on t1.requestid = t2.requestid\n"+
" inner join workflow_currentoperator t2 on t1.requestid = t2.requestid\n"+
" left join (select id, lastname,loginid,email from hrmresource where STATUS = 1 union all select id,lastname,loginid,'' as email from hrmresourcemanager ) h1 on h1.id = t2.userid\n"+
" left join (select id, lastname,loginid,email from hrmresource where STATUS = 1 union all select id,lastname,loginid,'' as email from hrmresourcemanager ) h1 on h1.id = t2.userid\n"+
@ -272,36 +284,36 @@ public class SendPortalDoneUtil {
" and ((t2.isremark = '0' and (t2.takisremark is null or t2.takisremark = 0)) or t2.isremark in ('1', '5', '8', '9', '7', '11'))\n"+
" and ((t2.isremark = '0' and (t2.takisremark is null or t2.takisremark = 0)) or t2.isremark in ('1', '5', '8', '9', '7', '11'))\n"+
" and t2.islasttimes = 1\n"+
" and t2.islasttimes = 1\n"+
" and (t2.isprocessing = '' or t2.isprocessing is null)\n"+
" and (t2.isprocessing = '' or t2.isprocessing is null)\n"+
" t1.requestid as taskCode,t1.currentnodeid as nodeid,d1.nodename\n"+
" t1.requestid as taskCode,t1.currentnodeid as nodeid,d1.nodename\n"+
" from workflow_requestbase t1\n"+
" from workflow_requestbase t1\n"+
" inner join workflow_base t3 on t1.workflowid = t3.id\n"+
" inner join workflow_base t3 on t1.workflowid = t3.id\n"+
" left join workflow_nodebase d1 on d1.id = t1.currentnodeid "+
" left join workflow_nodebase d1 on d1.id = t1.currentnodeid "+
" left join (select id, lastname,loginid from hrmresource where status = 1 union all select id, lastname,loginid from hrmresourcemanager ) h1 on h1.id = t1.creater\n"+
" left join (select id, lastname,loginid from hrmresource where status = 1 union all select id, lastname,loginid from hrmresourcemanager ) h1 on h1.id = t1.creater\n"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" inner join workflow_currentoperator t2 on t1.requestid = t2.requestid\n"+
" inner join workflow_currentoperator t2 on t1.requestid = t2.requestid\n"+
" left join (select id, lastname,loginid,email from hrmresource where STATUS = 1 union all select id,lastname,loginid,'' as email from hrmresourcemanager ) h1 on h1.id = t2.userid\n"+
" left join (select id, lastname,loginid,email from hrmresource where STATUS = 1 union all select id,lastname,loginid,'' as email from hrmresourcemanager ) h1 on h1.id = t2.userid\n"+
@ -393,39 +408,39 @@ public class SendPortalDoneUtil {
" and ((t2.isremark = '0' and (t2.takisremark is null or t2.takisremark = 0)) or t2.isremark in ('1', '5', '8', '9', '7', '11'))\n"+
" and ((t2.isremark = '0' and (t2.takisremark is null or t2.takisremark = 0)) or t2.isremark in ('1', '5', '8', '9', '7', '11'))\n"+
" and t2.islasttimes = 1\n"+
" and t2.islasttimes = 1\n"+
" and (t2.isprocessing = '' or t2.isprocessing is null)\n"+
" and (t2.isprocessing = '' or t2.isprocessing is null)\n"+
" inner join workflow_base t3 on t1.workflowid = t3.id\n"+
" t1.requestid as taskCode,t1.currentnodeid as nodeid,d1.nodename\n"+
" left join workflow_nodebase d1 on d1.id = t1.currentnodeid "+
" from workflow_requestbase t1\n"+
" left join (select id, lastname,loginid from hrmresource where status = 1 union all select id, lastname,loginid from hrmresourcemanager ) h1 on h1.id = t1.creater\n"+
" inner join workflow_base t3 on t1.workflowid = t3.id\n"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" left join workflow_nodebase d1 on d1.id = t1.currentnodeid "+
" and t1.requestid = "+requestid;
" left join (select id, lastname,loginid from hrmresource where status = 1 union all select id, lastname,loginid from hrmresourcemanager ) h1 on h1.id = t1.creater\n"+
rs.execute(sql);
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" inner join workflow_currentoperator t2 on t1.requestid = t2.requestid\n"+
" inner join workflow_currentoperator t2 on t1.requestid = t2.requestid\n"+
" left join (select id, lastname,loginid from hrmresource where status = 1 union all select id,lastname,loginid from hrmresourcemanager ) h1 on h1.id = t2.userid\n"+
" left join (select id, lastname,loginid from hrmresource where status = 1 union all select id,lastname,loginid from hrmresourcemanager ) h1 on h1.id = t2.userid\n"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" and ((t2.isremark = '0' and (t2.takisremark is null or t2.takisremark = 0)) or t2.isremark in ('1', '5', '8', '9', '7', '11'))\n"+
" and ((t2.isremark = '0' and (t2.takisremark is null or t2.takisremark = 0)) or t2.isremark in ('1', '5', '8', '9', '7', '11'))\n"+
" and t2.islasttimes = 1\n"+
" and t2.islasttimes = 1\n"+
" and (t2.isprocessing = '' or t2.isprocessing is null)\n"+
" and (t2.isprocessing = '' or t2.isprocessing is null)\n"+
" t1.requestid as taskCode,t1.currentnodeid as nodeid,d1.nodename\n"+
" t1.requestid as taskCode,t1.currentnodeid as nodeid,d1.nodename\n"+
" from workflow_requestbase t1\n"+
" from workflow_requestbase t1\n"+
" inner join workflow_base t3 on t1.workflowid = t3.id\n"+
" inner join workflow_base t3 on t1.workflowid = t3.id\n"+
" left join workflow_nodebase d1 on d1.id = t1.currentnodeid "+
" left join workflow_nodebase d1 on d1.id = t1.currentnodeid "+
" left join (select id, lastname,loginid from hrmresource where status = 1 union all select id, lastname,loginid from hrmresourcemanager ) h1 on h1.id = t1.creater\n"+
" left join (select id, lastname,loginid from hrmresource where status = 1 union all select id, lastname,loginid from hrmresourcemanager ) h1 on h1.id = t1.creater\n"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" and t1.requestid = "+requestid;
" and t1.requestid = "+requestid;
bb.writeLog("sendTodoDataByNode--sql:"+sql);
bb.writeLog("sendTodoDataByNode--sql:"+sql);
if(count>0){
if(count>0){
@ -367,12 +382,14 @@ public class SendPortalTodoUtil {
" t1.requestid as taskCode,t1.currentnodeid as nodeid,d1.nodename\n"+
" t1.requestid as taskCode,t1.currentnodeid as nodeid,d1.nodename\n"+
" from workflow_requestbase t1\n"+
" from workflow_requestbase t1\n"+
" inner join workflow_base t3 on t1.workflowid = t3.id\n"+
" inner join workflow_base t3 on t1.workflowid = t3.id\n"+
" left join workflow_nodebase d1 on d1.id = t1.currentnodeid "+
" left join workflow_nodebase d1 on d1.id = t1.currentnodeid "+
" left join (select id, lastname,loginid from hrmresource where status = 1 union all select id, lastname,loginid from hrmresourcemanager ) h1 on h1.id = t1.creater\n"+
" left join (select id, lastname,loginid from hrmresource where status = 1 union all select id, lastname,loginid from hrmresourcemanager ) h1 on h1.id = t1.creater\n"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+