| | |
| | | private final ProcessLogService processLogService; |
| | | private final ISysDictTypeService dictTypeService; |
| | | private final ProcessConfigInfoService processConfigInfoService; |
| | | |
| | | private final AuditHistoryService auditHistoryService; |
| | | /** |
| | | * 分页查询 |
| | | * |
| | |
| | | // 发布转办事件 |
| | | publisher.publishEvent(new TaskLogEvent(this, null, SecurityUtils.getUserId(), form.getProjectId(), form.getProcessInsId(), task.getId(), task.getTaskDefinitionKey(), task.getName(), ProcessLogEventTypeEnum.DELEGATE, jsonData)); |
| | | |
| | | |
| | | AuditHistoryForm auditHistoryForm = |
| | | buildForm(task.getId(), |
| | | task.getTaskDefinitionKey(), |
| | | null, |
| | | SecurityUtils.getDeptId() + "", |
| | | AuditTypeEnum.Submit.name(), |
| | | form.getProjectId(), |
| | | "t_project_info", |
| | | task.getName() |
| | | ); |
| | | auditHistoryService.add(auditHistoryForm); |
| | | return Result.ok("转办成功"); |
| | | } |
| | | public AuditHistoryForm buildForm( |
| | | String taskId, |
| | | String taskDefinitionKey, |
| | | String viewer, |
| | | String commitDept, |
| | | String auditType, |
| | | String businessKey, |
| | | String businessTable, |
| | | String content) { |
| | | AuditHistoryForm auditHistoryForm = new AuditHistoryForm(); |
| | | auditHistoryForm.setTaskId(taskId); |
| | | auditHistoryForm.setTaskDefinitionKey(taskDefinitionKey); |
| | | auditHistoryForm.setViewer(viewer); |
| | | auditHistoryForm.setCommitDept(commitDept); |
| | | auditHistoryForm.setAuditType(auditType); |
| | | auditHistoryForm.setBusinessKey(businessKey); |
| | | auditHistoryForm.setBusinessTable(businessTable); |
| | | auditHistoryForm.setContent(content); |
| | | |
| | | // 5. 特殊字段默认值:isRead 默认为 (未读) |
| | | auditHistoryForm.setIsRead(AuditHistoryEnum.UN_READ.name()); |
| | | |
| | | return auditHistoryForm; |
| | | } |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Result taskJump(TaskJumpForm form) { |