Commit 0e9eb478 authored by shyWang's avatar shyWang

PDM前端改造

流程待办优化
parent 36ec473d
...@@ -66,10 +66,9 @@ public class WfcProcessController { ...@@ -66,10 +66,9 @@ public class WfcProcessController {
@GetMapping({"/task/countOfType"}) @GetMapping({"/task/countOfType"})
public Map<String, Integer> getTaskTypeAndCount(@RequestParam("userName") String userName) { public Map<String, Integer> getTaskTypeAndCount(@RequestParam("userName") String userName) {
Map<String, Integer> resultMap = new HashMap<String, Integer>(); Map<String, Integer> resultMap = new HashMap<String, Integer>();
List<DxWfProcessTaskVO> todoTaskList = null;
try { try {
todoTaskList = WfcProcessService.getTodoTaskList(userName); int todoTaskListSize = WfcProcessService.getTodoTaskListSize(userName);
resultMap.put("todoTask", todoTaskList.size()); resultMap.put("todoTask", todoTaskListSize);
resultMap.put("forwardTask", 0); resultMap.put("forwardTask", 0);
resultMap.put("unClaimedTask", 0); resultMap.put("unClaimedTask", 0);
} catch (Exception e) { } catch (Exception e) {
......
...@@ -137,11 +137,6 @@ public class WfcProcessService implements RemoteAccess { ...@@ -137,11 +137,6 @@ public class WfcProcessService implements RemoteAccess {
objVO = new DxChangeNoticeVo(changeOrder2); objVO = new DxChangeNoticeVo(changeOrder2);
return objVO; return objVO;
} }
if (pbo instanceof WTChangeOrder2) {
WTChangeOrder2 changeOrder2 = (WTChangeOrder2) pbo;
objVO = new DxChangeNoticeVo(changeOrder2);
return objVO;
}
if (pbo instanceof WTChangeRequest2) { if (pbo instanceof WTChangeRequest2) {
WTChangeRequest2 changeRequest2 = (WTChangeRequest2) pbo; WTChangeRequest2 changeRequest2 = (WTChangeRequest2) pbo;
objVO = new DxChangeRequestVo(changeRequest2); objVO = new DxChangeRequestVo(changeRequest2);
...@@ -302,6 +297,11 @@ public class WfcProcessService implements RemoteAccess { ...@@ -302,6 +297,11 @@ public class WfcProcessService implements RemoteAccess {
return dxWfProcessTaskVO; return dxWfProcessTaskVO;
} }
/**
* 完成待办
* @param operationArgsVO
* @throws Exception
*/
public static void executeOperation(DxWfTaskOperationArgsVO operationArgsVO) throws Exception { public static void executeOperation(DxWfTaskOperationArgsVO operationArgsVO) throws Exception {
if (!RemoteMethodServer.ServerFlag) { if (!RemoteMethodServer.ServerFlag) {
RemoteMethodServer.getDefault().invoke("executeOperation", WfcProcessService.class.getName(), null, RemoteMethodServer.getDefault().invoke("executeOperation", WfcProcessService.class.getName(), null,
...@@ -329,6 +329,7 @@ public class WfcProcessService implements RemoteAccess { ...@@ -329,6 +329,7 @@ public class WfcProcessService implements RemoteAccess {
vector = WorkflowUtil.toVector(routerSelect); vector = WorkflowUtil.toVector(routerSelect);
} }
WorkflowUtil.completeTask(workItem,vector,description); WorkflowUtil.completeTask(workItem,vector,description);
return;
} }
if ("delegateTask".equalsIgnoreCase(operationName)) { if ("delegateTask".equalsIgnoreCase(operationName)) {
String targetUserName = operationArgsVO.getTargetUserId(); String targetUserName = operationArgsVO.getTargetUserId();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment