|
@@ -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);
|