|
@@ -457,6 +457,7 @@ public class ExamTaskDetailServiceImpl extends ServiceImpl<ExamTaskDetailMapper,
|
|
|
|
|
|
/**
|
|
/**
|
|
* 重启流程
|
|
* 重启流程
|
|
|
|
+ *
|
|
* @param examTaskDetail
|
|
* @param examTaskDetail
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@@ -495,6 +496,8 @@ public class ExamTaskDetailServiceImpl extends ServiceImpl<ExamTaskDetailMapper,
|
|
false);
|
|
false);
|
|
map.computeIfAbsent(SystemConstant.OLD_FLOW_ID, v -> examTask.getFlowId());
|
|
map.computeIfAbsent(SystemConstant.OLD_FLOW_ID, v -> examTask.getFlowId());
|
|
map.computeIfAbsent(SystemConstant.FLOW_JOIN_TYPE, v -> FlowJoinTypeEnum.RESTART);
|
|
map.computeIfAbsent(SystemConstant.FLOW_JOIN_TYPE, v -> FlowJoinTypeEnum.RESTART);
|
|
|
|
+ String remark = Objects.nonNull(sysOrg) ? sysOrg.getName() : "无机构";
|
|
|
|
+ map.computeIfAbsent(SystemConstant.APPROVE_REMARK, v -> requestUser.getRealName() + "(" + remark + ")" + FlowApprovePassEnum.RESTART.getTitle());
|
|
map = activitiService.customFlowStart(map);
|
|
map = activitiService.customFlowStart(map);
|
|
Long flowId = SystemConstant.convertIdToLong((String) map.get(SystemConstant.FLOW_ID));
|
|
Long flowId = SystemConstant.convertIdToLong((String) map.get(SystemConstant.FLOW_ID));
|
|
UpdateWrapper<ExamTask> updateWrapper = new UpdateWrapper<>();
|
|
UpdateWrapper<ExamTask> updateWrapper = new UpdateWrapper<>();
|
|
@@ -504,22 +507,36 @@ public class ExamTaskDetailServiceImpl extends ServiceImpl<ExamTaskDetailMapper,
|
|
mapVar.put(SystemConstant.SEND_FLOW_START_MQ, true);
|
|
mapVar.put(SystemConstant.SEND_FLOW_START_MQ, true);
|
|
|
|
|
|
tfFlowJoinService.saveOrUpdate(map);
|
|
tfFlowJoinService.saveOrUpdate(map);
|
|
- if (Objects.nonNull(flowId)) {
|
|
|
|
- // 审核一级
|
|
|
|
- Task task = taskService.createTaskQuery().processInstanceId(String.valueOf(flowId)).singleResult();
|
|
|
|
- if (Objects.nonNull(task)) {
|
|
|
|
- Map<String, Object> approverMap = new HashMap<>();
|
|
|
|
- approverMap.computeIfAbsent(SystemConstant.FLOW_TASK_ID, v -> task.getId());
|
|
|
|
- approverMap.computeIfAbsent(SystemConstant.PAPAER_ATTACHMENT_IDS, v -> examTaskDetail.getPaperAttachmentIds());
|
|
|
|
- approverMap.computeIfAbsent(SystemConstant.APPROVE_OPERATION, v -> FlowApprovePassEnum.PASS);
|
|
|
|
- String remark = Objects.nonNull(sysOrg) ? sysOrg.getName() : "无机构";
|
|
|
|
- approverMap.computeIfAbsent(SystemConstant.APPROVE_REMARK, v -> requestUser.getRealName() + "(" + remark + ")" + FlowApprovePassEnum.RESTART.getTitle());
|
|
|
|
- activitiService.taskApprove(approverMap);
|
|
|
|
- mapVar.putAll(approverMap);
|
|
|
|
- mapVar.remove(SystemConstant.SEND_FLOW_START_MQ);
|
|
|
|
- mapVar.put(SystemConstant.SEND_FLOW_MQ, true);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+// if (Objects.nonNull(flowId)) {
|
|
|
|
+// // 审核一级
|
|
|
|
+// Task task = taskService.createTaskQuery().processInstanceId(String.valueOf(flowId)).singleResult();
|
|
|
|
+// if (Objects.nonNull(task)) {
|
|
|
|
+// Map<String, Object> approverMap = new HashMap<>();
|
|
|
|
+// approverMap.computeIfAbsent(SystemConstant.FLOW_TASK_ID, v -> task.getId());
|
|
|
|
+// approverMap.computeIfAbsent(SystemConstant.PAPAER_ATTACHMENT_IDS, v -> examTaskDetail.getPaperAttachmentIds());
|
|
|
|
+// approverMap.computeIfAbsent(SystemConstant.APPROVE_OPERATION, v -> FlowApprovePassEnum.PASS);
|
|
|
|
+//// map.computeIfAbsent(SystemConstant.APPROVE_USER_IDS, v -> Arrays.asList(examTask.getUserId()));
|
|
|
|
+// String remark = Objects.nonNull(sysOrg) ? sysOrg.getName() : "无机构";
|
|
|
|
+// approverMap.computeIfAbsent(SystemConstant.APPROVE_REMARK, v -> requestUser.getRealName() + "(" + remark + ")" + FlowApprovePassEnum.RESTART.getTitle());
|
|
|
|
+// activitiService.taskApprove(approverMap);
|
|
|
|
+//
|
|
|
|
+// try {
|
|
|
|
+// Thread.sleep(1000);
|
|
|
|
+// } catch (InterruptedException e) {
|
|
|
|
+// e.printStackTrace();
|
|
|
|
+// }
|
|
|
|
+// Task taskReject = taskService.createTaskQuery().processInstanceId(String.valueOf(flowId)).singleResult();
|
|
|
|
+// Map<String, Object> approverRejectMap = new HashMap<>();
|
|
|
|
+// approverRejectMap.computeIfAbsent(SystemConstant.FLOW_TASK_ID, v -> taskReject.getId());
|
|
|
|
+// approverRejectMap.computeIfAbsent(SystemConstant.PAPAER_ATTACHMENT_IDS, v -> examTaskDetail.getPaperAttachmentIds());
|
|
|
|
+// approverRejectMap.computeIfAbsent(SystemConstant.APPROVE_OPERATION, v -> FlowApprovePassEnum.REJECT);
|
|
|
|
+// approverRejectMap.computeIfAbsent(SystemConstant.APPROVE_SETUP, v -> FlowApproveSetupEnum.SUBMIT.getSetup());
|
|
|
|
+// activitiService.taskApprove(approverRejectMap);
|
|
|
|
+// mapVar.putAll(approverMap);
|
|
|
|
+// mapVar.remove(SystemConstant.SEND_FLOW_START_MQ);
|
|
|
|
+// mapVar.put(SystemConstant.SEND_FLOW_MQ, true);
|
|
|
|
+// }
|
|
|
|
+// }
|
|
}
|
|
}
|
|
mapVar.put(SystemConstant.SUCCESS, true);
|
|
mapVar.put(SystemConstant.SUCCESS, true);
|
|
return mapVar;
|
|
return mapVar;
|