parent
0ee625979c
commit
9dc6c559d2
@ -0,0 +1,33 @@
|
|||||||
|
package com.ruoyi.flowable.controller;
|
||||||
|
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.flowable.domain.dto.FlowTaskDto;
|
||||||
|
import com.ruoyi.flowable.service.IFlowInstanceService;
|
||||||
|
import com.ruoyi.flowable.service.IFlowTaskService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
@Api(tags = "工作流流程任务管理")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/flowable/hisTask")
|
||||||
|
public class FlowHisTaskController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IFlowTaskService flowTaskService;
|
||||||
|
|
||||||
|
@ApiOperation(value = "我发起的流程", response = FlowTaskDto.class)
|
||||||
|
@GetMapping(value = "/myProcess")
|
||||||
|
public AjaxResult myProcess(@ApiParam(value = "当前页码", required = true) @RequestParam Integer pageNum,
|
||||||
|
@ApiParam(value = "每页条数", required = true) @RequestParam Integer pageSize) {
|
||||||
|
return flowTaskService.myProcess(pageNum, pageSize);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.ruoyi.flowable.service;
|
||||||
|
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author XuanXuan
|
||||||
|
* @date 2021-04-03 14:42
|
||||||
|
*/
|
||||||
|
public interface IFlowHisTaskService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 审批任务
|
||||||
|
*
|
||||||
|
* @param taskId 任务id
|
||||||
|
*/
|
||||||
|
AjaxResult updateTaskEndTime(String taskId);
|
||||||
|
}
|
Loading…
Reference in new issue