Explorar o código

档案系统上报任务流程id设置进u_task

DengLinLang hai 2 semanas
pai
achega
f35a2373b3

+ 8 - 1
blade-service/blade-business/src/main/java/org/springblade/business/controller/TaskController.java

@@ -492,7 +492,14 @@ public class TaskController extends BladeController {
                 task.setBatch(archiveTaskBatchReportDTO.getBatch());
                 task.setType(1);
                 task.setApprovalType(4); //档案审批
-                task.setFixedFlowId(0L);
+                Long flowId = null;
+                try {
+                    String fixedFlowId = archiveTaskBatchReportDTO.getFixedFlowId();
+                    flowId = Long.parseLong(fixedFlowId);
+                } catch (NumberFormatException e) {
+                    flowId = 0L;
+                }
+                task.setFixedFlowId(flowId);
                 task.setStatus(1); //待审批
                 task.setIsDeleted(0);
                 task.setTrialSelfInspectionRecordId(null);