重命名历史任务的接口

This commit is contained in:
YunaiV
2022-01-18 23:48:44 +08:00
parent 2de81e438a
commit adc6076deb
7 changed files with 30 additions and 30 deletions

View File

@ -64,12 +64,12 @@ public class BpmTaskController {
return success(true);
}
@GetMapping("/historic-list-by-process-instance-id")
@GetMapping("/list-by-process-instance-id")
@ApiOperation(value = "获得指定流程实例的任务列表", notes = "包括完成的、未完成的")
@ApiImplicitParam(name = "processInstanceId", value = "流程实例的编号", required = true, dataTypeClass = String.class)
public CommonResult<List<BpmTaskRespVO>> getHistoricTaskListByProcessInstanceId(
public CommonResult<List<BpmTaskRespVO>> getTaskListByProcessInstanceId(
@RequestParam("processInstanceId") String processInstanceId) {
return success(taskService.getHistoricTaskListByProcessInstanceId(processInstanceId));
return success(taskService.getTaskListByProcessInstanceId(processInstanceId));
}
/**

View File

@ -30,7 +30,7 @@ public interface BpmTaskService {
* @param processInstanceId 流程实例的编号
* @return 流程任务列表
*/
List<BpmTaskRespVO> getHistoricTaskListByProcessInstanceId(String processInstanceId);
List<BpmTaskRespVO> getTaskListByProcessInstanceId(String processInstanceId);
/**
* 获得流程任务列表

View File

@ -92,7 +92,7 @@ public class BpmTaskServiceImpl implements BpmTaskService {
}
@Override
public List<BpmTaskRespVO> getHistoricTaskListByProcessInstanceId(String processInstanceId) {
public List<BpmTaskRespVO> getTaskListByProcessInstanceId(String processInstanceId) {
// 获得任务列表
List<HistoricTaskInstance> tasks = historyService.createHistoricTaskInstanceQuery()
.processInstanceId(processInstanceId)