lyh
2025-04-02 0990dd4a4a52a6d26ff4d640980206fbff392dfb
lxzn-module-dnc/src/main/java/org/jeecg/modules/dncFlow/controller/DispatchFileController.java
@@ -13,12 +13,15 @@
import org.jeecg.modules.dncFlow.entity.DispatchFile;
import org.jeecg.modules.dncFlow.service.IDispatchFileService;
import org.jeecg.modules.dncFlow.vo.DispatchFileFlowTaskVo;
import org.jeecg.modules.flowable.domain.dto.FlowTaskDto;
import org.jeecg.modules.flowable.service.IHisWorkTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.lang.reflect.InvocationTargetException;
import java.util.Arrays;
 /**
@@ -35,6 +38,8 @@
   @Autowired
   private IDispatchFileService dispatchFileService;
   @Autowired
   private IHisWorkTaskService hisWorkTaskService;
   /**
    * 分页列表查询
    *
@@ -59,14 +64,14 @@
    /**
     * 重新启动
     * @param id
     * @param dispatchFileFlowTaskVo
     * @return
     */
    @AutoLog(value = "nc程序与电子图版签派-重新启动")
    @ApiOperation(value="nc程序与电子图版签派-重新启动", notes="nc程序与电子图版签派-重新启动")
    @GetMapping(value = "/saveDispatchFile")
    public Result<?> saveDispatchFile(String id){
       return dispatchFileService.reStartDispatchFile(id);
    @PostMapping(value = "/saveDispatchFile")
    public Result<?> saveDispatchFile(@RequestBody DispatchFileFlowTaskVo dispatchFileFlowTaskVo){
       return dispatchFileService.reStartDispatchFile(dispatchFileFlowTaskVo);
    }
@@ -77,11 +82,30 @@
     */
    @AutoLog(value = "nc程序与电子图版签派-审批操作")
    @ApiOperation(value="nc程序与电子图版签派-审批操作", notes="nc程序与电子图版签派-审批操作")
    @GetMapping(value = "/approval")
    public Result<?> approval(DispatchFileFlowTaskVo dispatchFileFlowTaskVo){
    @PostMapping(value = "/approval")
    public Result<?> approval(@RequestBody DispatchFileFlowTaskVo dispatchFileFlowTaskVo){
       return dispatchFileService.auditDispatchFile(dispatchFileFlowTaskVo);
    }
    /**
     * 批量审批操作
     * @param dispatchFileFlowTaskVo
     * @return
     */
    @AutoLog(value = "nc程序与电子图版签派-批量审批操作")
    @ApiOperation(value="nc程序与电子图版签派-批量审批操作", notes="nc程序与电子图版签派-批量审批操作")
    @PostMapping(value = "/approvalBatch")
    public Result<?> approvalBatch(@RequestBody DispatchFileFlowTaskVo dispatchFileFlowTaskVo) throws InvocationTargetException, IllegalAccessException {
      return dispatchFileService.auditBatchDispatchFile(dispatchFileFlowTaskVo);
    }
    @ApiOperation(value = "获取工作流历史任务", response = FlowTaskDto.class)
    @GetMapping(value = "/queryHisTaskList")
    public Result<?> queryHisTaskList(@RequestParam(name = "procInstId") String procInstId) {
       return Result.OK(hisWorkTaskService.queryHisTaskByProcInstId(procInstId));
    }
   /**
    *   添加
    *