// String sql = " select * from (select id, lastname,loginid from hrmresource where status = 1 union all select id, lastname,loginid from hrmresourcemanager ) w where w.id = '" + u_userid + "'";
@ -263,18 +247,19 @@ public class SendPortalToReadUtil {
try{
// int u_userid = user.getUID();
Stringlastname="";
//
// String workcode = "";
// String sql = " select * from (select id, lastname,loginid from hrmresource where status = 1 union all select id, lastname,loginid from hrmresourcemanager ) w where w.id = '" + u_userid + "'";
@ -528,15 +532,14 @@ public class SendPortalTodoUtil {
StringactionType="1";
StringobjectAction="1";
StringobjectType="0";
Stringworkflowname="";
Stringsql=" select t1.requestname,t1.currentnodeid as nodeid,d1.nodename,t3.workflowname,h2.lastname,h2.loginid "+
" 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 ) h2 on h2.id = t1.creater \n"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" and t1.requestid = "+requestid;
" 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 ) h2 on h2.id = t1.creater \n"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" and t1.requestid = "+requestid;
bb.writeLog("sendTodoDataByNode--sql:"+sql);
@ -544,7 +547,6 @@ public class SendPortalTodoUtil {
@ -609,14 +607,13 @@ public class SendPortalTodoUtil {
JSONArraytaskObjectList=newJSONArray();
Stringworkflowname="";
Stringsql=" select t1.requestname,t1.currentnodeid as nodeid,d1.nodename,t3.workflowname,h2.lastname,h2.loginid "+
" 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 ) h2 on h2.id = t1.creater \n"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" and t1.requestid = "+requestid;
Stringsql=" select t1.requestname,t1.currentnodeid as nodeid,d1.nodename,t3.workflowname,h2.lastname,h2.loginid "+
" 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 ) h2 on h2.id = t1.creater \n"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" and t1.requestid = "+requestid;
bb.writeLog("sendTodoDataByNode--sql2:"+sql);
@ -624,7 +621,6 @@ public class SendPortalTodoUtil {
@ -884,13 +884,13 @@ public class SendPortalTodoUtil {
StringcurrentUserId=user.getUID()+"";
Stringsql=" select t1.requestname,t1.currentnodeid as nodeid,d1.nodename,t3.workflowname,h2.lastname "+
" 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 ) h2 on h2.id = t1.creater \n"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" and t1.requestid = "+requestid;
Stringsql=" select t1.requestname,t1.currentnodeid as nodeid,d1.nodename,t3.workflowname,h2.lastname "+
" 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 ) h2 on h2.id = t1.creater \n"+
" where (t1.deleted <> 1 or t1.deleted is null or t1.deleted = '')\n"+
" and t1.requestid = "+requestid;
bb.writeLog("sendTodoDataByReject--sql:"+sql);
@ -993,14 +993,12 @@ public class SendPortalTodoUtil {
@ -87,12 +87,12 @@ public class SendPortalWithAddDoneCmd {
if("3".equals(currentNodeType)){
intusercount=0;
sql=" select id from workflow_currentoperator \n"+
"where requestid = " +requestid+
"and nodeid= " +currentNodeId+
"and isremark = 4 \n" +
"and preisremark = 4 \n" +
"and receivedate in(select max(receivedate ) as receivedate from workflow_currentoperator where requestid = "+requestid+" and nodeid="+currentNodeId+")\n"+
"and receivetime in(select max(receivetime) as receivetime from workflow_currentoperator where requestid = "+requestid+" and nodeid="+currentNodeId+")";
"where requestid = " +requestid+
"and nodeid= " +currentNodeId+
"and isremark = 4 \n" +
"and preisremark = 4 \n" +
"and receivedate in(select max(receivedate ) as receivedate from workflow_currentoperator where requestid = "+requestid+" and nodeid="+currentNodeId+")\n"+
"and receivetime in(select max(receivetime) as receivetime from workflow_currentoperator where requestid = "+requestid+" and nodeid="+currentNodeId+")";