" 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"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" and t2.isremark in ('9')\n" +
" and t2.isremark in ('8','9')\n" +
" and t2.islasttimes = 1\n"+
" and (t2.isprocessing = '' or t2.isprocessing is null)\n"+
" and t2.requestid = "+requestid;
" and t2.requestid = "+requestid+" and nodeid = "+noideid;
@ -194,26 +237,25 @@ public class SendPortalToReadUtil {
intcount=0;
StringcountSql=" select t2.userid,h1.loginid\n"+
" from workflow_requestbase t1\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"+
" 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', '7', '11'))\n" +
" and t2.islasttimes = 1\n"+
" and (t2.isprocessing = '' or t2.isprocessing is null)\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"+
" 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', '7', '11'))\n" +
" and t2.islasttimes = 1\n"+
" and (t2.isprocessing = '' or t2.isprocessing is null)\n"+
@ -222,109 +264,129 @@ public class SendPortalToReadUtil {
" t1.requestid as taskCode,t1.currentnodeid as nodeid,d1.nodename\n"+
" from workflow_requestbase t1\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"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\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"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" and t2.isremark in ('9')\n" +
" and t2.isremark in ('8','9')\n" +
" and t2.islasttimes = 1\n"+
" and (t2.isprocessing = '' or t2.isprocessing is null)\n"+
" and t2.REQUESTID = "+requestid;
" and t2.REQUESTID = "+requestid +" and nodeid="+noideid;
" t1.requestid as taskcode,d1.nodename,h1.email\n"+
" from workflow_requestbase t1\n"+
" inner join workflow_currentoperator t2 on t1.requestid = t2.requestid\n"+
" inner join workflow_base t3 on t1.workflowid = t3.id\n"+
" left join workflow_nodebase d1 on d1.id = t1.currentnodeid "+
" 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 = t1.creater\n"+
" where t2.userid in ("+userid+") \n"+
" and (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', '7', '11'))\n"+
" and (ifnull(t1.currentstatus, -1) = -1 or (ifnull(t1.currentstatus, -1) = 0 and t1.creater in ("+userid+"))) \n"+
" and t2.islasttimes = 1 \n"+
" and (t2.isprocessing = '' or t2.isprocessing is null) \n"+
" and t2.requestid = "+requestId;
" t1.requestid as taskcode,d1.nodename,h1.email\n"+
" from workflow_requestbase t1\n"+
" inner join workflow_currentoperator t2 on t1.requestid = t2.requestid\n"+
" inner join workflow_base t3 on t1.workflowid = t3.id\n"+
" left join workflow_nodebase d1 on d1.id = t1.currentnodeid "+
" 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 = t1.creater\n"+
" where t2.userid in ("+userid+") \n"+
" and (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','7','8','9','11'))\n"+
" and (ifnull(t1.currentstatus, -1) = -1 or (ifnull(t1.currentstatus, -1) = 0 and t1.creater in ("+userid+"))) \n"+
" and t2.islasttimes = 1 \n"+
" and (t2.isprocessing = '' or t2.isprocessing is null) \n"+
@ -261,7 +261,7 @@ public class SendPortalTodoUtil {
" 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"+
" 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', '7','11'))\n" +
" and ((t2.isremark = '0' and (t2.takisremark is null or t2.takisremark = 0)) or t2.isremark in ('1','5','7','11'))\n" +
" and t2.islasttimes = 1\n"+
" and (t2.isprocessing = '' or t2.isprocessing is null)\n"+
" and t2.requestid = "+requestid;
@ -289,20 +289,18 @@ public class SendPortalTodoUtil {
@ -356,7 +352,7 @@ public class SendPortalTodoUtil {
" 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"+
" 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', '7','11'))\n" +
" and ((t2.isremark = '0' and (t2.takisremark is null or t2.takisremark = 0)) or t2.isremark in ('1','5','7','11'))\n" +
" and t2.islasttimes = 1\n"+
" and (t2.isprocessing = '' or t2.isprocessing is null)\n"+
" and t2.REQUESTID = "+requestid+
@ -494,7 +490,7 @@ public class SendPortalTodoUtil {
" 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"+
" 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', '7', '11'))\n" +
" and ((t2.isremark = '0' and (t2.takisremark is null or t2.takisremark = 0)) or t2.isremark in ('1', '5', '7','8','9','11'))\n" +
" and t2.islasttimes = 1\n"+
" and (t2.isprocessing = '' or t2.isprocessing is null)\n"+
" and t2.REQUESTID = "+requestid;
@ -644,7 +640,7 @@ public class SendPortalTodoUtil {
" 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"+
" 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', '7', '11'))\n" +
" and ((t2.isremark = '0' and (t2.takisremark is null or t2.takisremark = 0)) or t2.isremark in ('1', '5','7', '11'))\n" +
" and t2.islasttimes = 1\n"+
" and (t2.isprocessing = '' or t2.isprocessing is null)\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"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" and t2.isremark in ('2','9')\n"+
" and t2.preisremark in ('8','9')\n"+
" and t2.requestid = "+requestid+" and t2.userid in ("+userid+") and t2.nodeid = "+nodeid;
" t1.requestid as taskCode,t1.currentnodeid as nodeid,d1.nodename\n"+
" from workflow_requestbase t1\n"+
" inner join workflow_base t3 on t1.workflowid = t3.id\n"+
" 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"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\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"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" and t2.isremark in ('2','9')\n"+
" and t2.preisremark in ('8','9')\n"+
" and t2.requestid = "+requestid+" and t2.userid in ("+userid+") and t2.nodeid = "+nodeid;
" t1.requestid as taskCode,t1.currentnodeid as nodeid,d1.nodename\n"+
" from workflow_requestbase t1\n"+
" inner join workflow_base t3 on t1.workflowid = t3.id\n"+
" 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"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+