diff --git a/com.actionsoft.apps.coe.pal.publisher/lib/com.actionsoft.apps.coe.pal.publisher.jar b/com.actionsoft.apps.coe.pal.publisher/lib/com.actionsoft.apps.coe.pal.publisher.jar index 595e35ba..d0d095af 100644 Binary files a/com.actionsoft.apps.coe.pal.publisher/lib/com.actionsoft.apps.coe.pal.publisher.jar and b/com.actionsoft.apps.coe.pal.publisher/lib/com.actionsoft.apps.coe.pal.publisher.jar differ diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/PublishClientController.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/PublishClientController.java index 93e2f1ef..20fe57b4 100644 --- a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/PublishClientController.java +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/PublishClientController.java @@ -517,9 +517,9 @@ public class PublishClientController { * @return */ @Mapping("com.awspaas.user.apps.publish.RetransmissionOA") - public String RetransmissionOA(UserContext me, String id) throws SQLException { + public String RetransmissionOA(UserContext me, String ids) throws SQLException { ProcessPublishClientWeb web = new ProcessPublishClientWeb(me); - return web.RetransmissionOA(id); + return web.RetransmissionOA(ids); } diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/PublisherController.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/PublisherController.java index 68f4ae44..a2abc3ac 100644 --- a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/PublisherController.java +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/PublisherController.java @@ -875,9 +875,9 @@ public class PublisherController { * @return */ @Mapping("com.actionsoft.apps.coe.pal.publisher_publish_InterruptTask") - public String InterruptTask(UserContext me,String processInstId) { + public String InterruptTask(UserContext me,String taskId) { ProcessPublishWeb web = new ProcessPublishWeb(me); - return web.InterruptTask(processInstId); + return web.InterruptTask(taskId); } diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishClientWeb.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishClientWeb.java index 3422f803..9738cc7f 100644 --- a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishClientWeb.java +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishClientWeb.java @@ -4807,11 +4807,12 @@ public class ProcessPublishClientWeb extends AbstPortalSkins implements PortalSk * 对于OA待阅失败人员数据进行重新推送 * @return */ - public String RetransmissionOA(String id) throws SQLException { + public String RetransmissionOA(String ids) throws SQLException { ResponseObject ro = ResponseObject.newOkResponse(); - String[] ids=id.split(","); + String[] idArray=ids.split(","); - for(String oneid: ids){ + System.out.println(""); + for(String oneid: idArray){ BO readCountBO=SDK.getBOAPI().query("BO_EU_READ_COUNT").detailById(oneid); if(readCountBO!=null){ @@ -4825,10 +4826,7 @@ public class ProcessPublishClientWeb extends AbstPortalSkins implements PortalSk TaskInstance taskInst = SDK.getTaskAPI().getInstanceById(taskInd); BO publishBo = SDK.getBOAPI().getByProcess("BO_ACT_COE_PUBLISH", publshId); - // 发送岗位 - String send_scope_post = publishBo.getString("SEND_SCOPE_POST"); - // 发送组织 - String send_scope_org = publishBo.getString("SEND_SCOPE_ORG"); + List bo_act_coe_publish_n = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_N", true).addQuery("BINDID=", publshId) .list(); @@ -4937,6 +4935,7 @@ public class ProcessPublishClientWeb extends AbstPortalSkins implements PortalSk boActCoePublish.getString("APPLYDATE"), publshId, boActCoePublish.getString("SEND_SCOPE_POST"), boActCoePublish.getString("SEND_SCOPE_LEVEL"), "1"); + System.out.println("xxxxxxxxxxxxxxxxxxxxx"+boActCoePublish.getString("PROCESS_TITLE")); JSONObject jsonObject = new JSONObject(new LinkedHashMap()); jsonObject.put("action", "read"); jsonObject.put("title", " " + "" + boActCoePublish.getString("PROCESS_TITLE") + ""); @@ -4963,6 +4962,7 @@ public class ProcessPublishClientWeb extends AbstPortalSkins implements PortalSk System.err.println(publshInst.getTitle() + "待发送人员数量====>" + arr.size()); for (String uid : arr) { try { + System.out.println("uid================="+uid); SendOARead(jsonObject, publshInst, uid); } catch (Exception e) { } diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java index 736a3ee6..bd1cd02b 100644 --- a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java @@ -4574,12 +4574,12 @@ public class ProcessPublishWeb extends ActionWeb { * @param processInstId * @return */ - public String InterruptTask(String processInstId) { + public String InterruptTask(String taskId) { ResponseObject ro = ResponseObject.newOkResponse(); - if (processInstId == null) { + if (taskId == null) { return ResponseObject.newErrResponse("流程实例未找到").toString(); } - int count = DBSql.update("UPDATE BO_ACT_EXECUTIVE_TASK SET TASKSTATUS='" + 2 + "' WHERE TASKID ='" + processInstId + "'"); + int count = DBSql.update("UPDATE BO_ACT_EXECUTIVE_TASK SET TASKSTATUS='2' WHERE TASKID ='" + taskId + "'"); if(count>0){ ro.put("result","ok"); }else{ diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/pubEvent/ProcessEndAfterEvent_new.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/pubEvent/ProcessEndAfterEvent_new.java index cb9cd5fd..f3db08f6 100644 --- a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/pubEvent/ProcessEndAfterEvent_new.java +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/pubEvent/ProcessEndAfterEvent_new.java @@ -87,7 +87,7 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute if(isConfirmRelease==true){ ProcessInstance boProcessInstance = SDK.getProcessAPI() - .createBOProcessInstance("obj_a2d419f9aff446c1be891785200e914c", ext.getUserContext().getUserName(), "OA任务传输"); + .createBOProcessInstance("obj_7946c848674f422fbe2817ad5d047337", ext.getUserContext().getUID(), "OA任务状态记录"); BO executiveTaskBO=new BO(); executiveTaskBO.set("TASKTITLE",ext.getProcessInstance().getTitle()); executiveTaskBO.set("TASKID",ext.getProcessInstance().getId()); @@ -396,9 +396,7 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute BO executiveTaskBO=SDK.getBOAPI().query("BO_ACT_EXECUTIVE_TASK").addQuery("TASKID=",processExecutionContext.getProcessInstance().getId()).addQuery("TASKSTATUS=",2).detail(); if(executiveTaskBO!=null){ String userIds = StringUtils.join(idList, ","); - System.out.println("userIds=============="+userIds); String[] userIdsArray=userIds.split(","); - System.out.println("userIdsArray=============="+userIdsArray); for(String oneuserId:userIdsArray){ BO bo = new BO(); bo.set("TITLE", processExecutionContext.getProcessInstance().getTitle()); @@ -406,7 +404,7 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute bo.set("TYPE", "批量推送"); bo.set("RESULT", "待处理"); bo.set("PROCESSID", processExecutionContext.getProcessInstance().getId()); - bo.set("DEPNAME", SDK.getORGAPI().getUser(userIds).getDepartmentId()); + bo.set("DEPNAME", SDK.getORGAPI().getUser(oneuserId).getDepartmentId()); SDK.getBOAPI().create("BO_EU_READ_COUNT", bo, processExecutionContext.getProcessInstance().getId(), processExecutionContext.getProcessInstance().getCreateUser()); } return; @@ -441,8 +439,27 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute + instanceById.getId() + "' AND RESULT = '待处理'"); if (List.size() != 0) { System.err.println(instanceById.getTitle() + "批量推送失败后执行二次推送=======>" + List.size()); + + + BO executiveTaskBO=SDK.getBOAPI().query("BO_ACT_EXECUTIVE_TASK").addQuery("TASKID=",processExecutionContext.getProcessInstance().getId()).addQuery("TASKSTATUS=",2).detail(); + if(executiveTaskBO!=null){ + for (RowMap rowMap : List) { + BO bo = new BO(); + bo.set("TITLE", processExecutionContext.getProcessInstance().getTitle()); + bo.set("NAME", rowMap.getString("NAME")); + bo.set("TYPE", "批量推送"); + bo.set("RESULT", "待处理"); + bo.set("PROCESSID", processExecutionContext.getProcessInstance().getId()); + bo.set("DEPNAME", SDK.getORGAPI().getUser(rowMap.getString("NAME")).getDepartmentId()); + SDK.getBOAPI().create("BO_EU_READ_COUNT", bo, processExecutionContext.getProcessInstance().getId(), processExecutionContext.getProcessInstance().getCreateUser()); + } + return; + } + + for (RowMap rowMap : List) { try { + ArrayList userList3 = new ArrayList(); userList3.add(rowMap.getString("NAME")); System.err.println(instanceById.getTitle() + "二次推送账号=======>" + userList3); @@ -807,6 +824,7 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute throws DocumentException { String processInstId = processInstance.getId(); + System.out.println("流程实例id==============="+processInstId); // System.err.println(processInstance.getTitle() + "开始发送:" + userId); /* @@ -863,7 +881,6 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute System.out.println("oa_real_time=========="+oa_real_time); System.out.println("sucount============="+sucount); if(oa_real_time!=null){ - System.out.println("修改数量"); int r1 = DBSql.update("UPDATE BO_ACT_OA_REAL_TIME SET SENDNUMSJ='" + sucount + "'WHERE PROCESSID ='" + processInstance.getId() + "'"); }else{ //插入实时更新人数表 @@ -896,7 +913,6 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute bo.set("DEPNAME", SDK.getORGAPI().getUser(userId).getDepartmentId()); SDK.getBOAPI().create("BO_EU_READ_COUNT", bo, processInstance.getId(), processInstance.getCreateUser()); } catch (Exception e) { - System.out.println(processInstance.getTitle() + "待阅推送失败:" + userIds); BO bo = new BO(); bo.set("TITLE", processInstance.getTitle()); bo.set("NAME", userIds); diff --git a/com.actionsoft.apps.coe.pal.publisher/template/form/发布流程-执行任务.htm b/com.actionsoft.apps.coe.pal.publisher/template/form/发布流程-执行任务.htm new file mode 100644 index 00000000..d9951b74 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/template/form/发布流程-执行任务.htm @@ -0,0 +1,62 @@ + + + + + + 执行任务 + + + + + + [#AWSImport] + [#AWSUIImport] + + + + + +
+
+ + + + + + + + + + + + +
执行任务
+ + + + + + + + + + + + + + + +
[#TASKID]
[#TASKSTATUS]
[#TASKTITLE]
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/template/form/发布流程-执行任务_m.htm b/com.actionsoft.apps.coe.pal.publisher/template/form/发布流程-执行任务_m.htm new file mode 100644 index 00000000..60426d82 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/template/form/发布流程-执行任务_m.htm @@ -0,0 +1,55 @@ + + + + + + + 执行任务 + + + + + + [#AWSImport] + [#AWSUIImport] + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + + + +
[#TASKID]
[#TASKSTATUS]
[#TASKTITLE]
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/coe.pal.process.publish.ma.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/coe.pal.process.publish.ma.js index 0a60f0a7..e2a05ce8 100644 --- a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/coe.pal.process.publish.ma.js +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/coe.pal.process.publish.ma.js @@ -438,10 +438,7 @@ function initPublishData(data, type, pageNumber, start){ // 初始化数据 function selectPublishData(data, type, pageNumber, start) { - - //渲染到前台的流程架构L1,L2,L3 - var param = { cmd: 'com.actionsoft.apps.coe.pal.publisher_getPublishNameByJs', processInstId: processInstId,