流程详情页 30% - 表单信息的展示

This commit is contained in:
YunaiV
2022-01-16 22:16:49 +08:00
parent f049bd7530
commit f0963c3941
10 changed files with 100 additions and 79 deletions

View File

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

View File

@ -64,6 +64,7 @@ public interface BpmProcessInstanceConvert {
@Mappings({
@Mapping(source = "id", target = "processInstanceId"),
@Mapping(source = "id", target = "id", ignore = true),
@Mapping(source = "startDate", target = "createTime"),
@Mapping(source = "initiator", target = "startUserId"),
@Mapping(source = "status", target = "status", ignore = true)

View File

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

View File

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