yangys
2025-09-13 a0f3e98fdd9472af3c78b42423a7e3fa6fb92eba
blade-service/blade-mdm/src/main/java/org/springblade/mdm/flow/service/execute/BatchDispatchService.java
@@ -12,11 +12,8 @@
import org.springblade.mdm.commons.service.UserCommonService;
import org.springblade.mdm.flow.constants.FlowContants;
import org.springblade.mdm.flow.constants.FlowVariableContants;
import org.springblade.mdm.flow.service.ApproveRecordService;
import org.springblade.mdm.flow.service.FlowCommonService;
import org.springblade.mdm.flow.service.FlowProgramFileService;
import org.springblade.mdm.flow.vo.BatchDispatchVO;
import org.springblade.mdm.program.service.NcNodeAutoCreateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@@ -28,9 +25,6 @@
 */
@Service
public class BatchDispatchService  {
   @Autowired
   private ApproveRecordService approveRecordService;
   @Autowired
   private TaskService taskService;
   @Autowired
@@ -68,7 +62,6 @@
         if (StringUtil.isNoneBlank(processInstanceId, comment)) {
            taskService.addComment(taskId, processInstanceId, comment);
         }
         approveRecordService.saveApproveRecords(task,FlowContants.Y,comment);
         taskService.complete(taskId, variables);
      }
@@ -110,7 +103,6 @@
         if (StringUtil.isNoneBlank(processInstanceId, batchDispatchVO.getComment())) {
            taskService.addComment(taskId, processInstanceId, batchDispatchVO.getComment());
         }
         approveRecordService.saveApproveRecords(task,FlowContants.Y,batchDispatchVO.getComment());
         //最后一步完成
         taskService.complete(taskId, variables);