@@ -41,8 +41,8 @@ public FlowService(FlowWorkRepository flowWorkRepository,
4141 this .flowServiceRepositoryHolder = new FlowServiceRepositoryHolder (flowWorkRepository , flowRecordRepository , flowBindDataRepository , flowOperatorRepository , flowProcessRepository , flowBackupRepository );
4242 this .flowDetailService = new FlowDetailService (flowWorkRepository , flowRecordRepository , flowBindDataRepository , flowOperatorRepository , flowProcessRepository );
4343 this .flowCustomEventService = new FlowCustomEventService (flowWorkRepository , flowRecordRepository , flowProcessRepository );
44- this .flowRecallService = new FlowRecallService (flowWorkRepository , flowRecordRepository , flowProcessRepository );
45- this .flowRemoveService = new FlowRemoveService (flowWorkRepository , flowRecordRepository , flowProcessRepository );
44+ this .flowRecallService = new FlowRecallService (flowWorkRepository , flowRecordRepository , flowProcessRepository , flowBindDataRepository );
45+ this .flowRemoveService = new FlowRemoveService (flowWorkRepository , flowRecordRepository , flowProcessRepository , flowBindDataRepository );
4646 this .flowSaveService = new FlowSaveService (flowWorkRepository , flowRecordRepository , flowBindDataRepository , flowProcessRepository );
4747 this .flowTransferService = new FlowTransferService (flowWorkRepository , flowRecordRepository , flowBindDataRepository , flowProcessRepository );
4848 this .flowPostponedService = new FlowPostponedService (flowWorkRepository , flowRecordRepository , flowProcessRepository );
@@ -57,11 +57,13 @@ public FlowService(FlowWorkRepository flowWorkRepository,
5757 * @return 流程详情
5858 */
5959 public FlowDetail detail (long recordId , String workCode , IFlowOperator currentOperator ) {
60+ if (recordId > 0 ) {
61+ return flowDetailService .detail (recordId , currentOperator );
62+ }
6063 if (StringUtils .hasText (workCode )) {
6164 return flowDetailService .detail (workCode , currentOperator );
62- } else {
63- return flowDetailService .detail (recordId , currentOperator );
6465 }
66+ return null ;
6567 }
6668
6769 /**
0 commit comments