" t1.requestid as taskcode,d1.nodename,h1.email\n" +
" t1.requestid as taskcode,d1.nodename,h1.email,c1."+staffIdFieldByCus+" as staffid"+
" 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 cus_fielddata c1 on c1.ID=t2.USERID"+
" 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"+
@ -64,6 +68,7 @@ public class SendPortalTodoUtil {
" t1.requestid as taskCode,t1.currentnodeid as nodeid,d1.nodename\n" +
" t1.requestid as taskCode,t1.currentnodeid as nodeid,d1.nodename,c1."+staffIdFieldByCus+" as staffid"+
" 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 cus_fielddata c1 on c1.ID=t1.creater"+
" 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"+
" and t1.requestid = "+requestid;
@ -213,6 +219,7 @@ public class SendPortalTodoUtil {
@ -371,6 +378,7 @@ public class SendPortalTodoUtil {
" 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 cus_fielddata c1 on c1.ID=t1.creater"+
" 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"+
" and t1.requestid = "+requestid;
@ -385,6 +393,7 @@ public class SendPortalTodoUtil {