feat: 分组流程详情查看

This commit is contained in:
tony
2022-12-12 11:02:24 +08:00
parent 83bb7cd5ba
commit 22de6bafc1
23 changed files with 2504 additions and 67 deletions

View File

@@ -73,6 +73,13 @@ public class FlowTaskController {
return flowTaskService.flowRecord(procInsId, deployId);
}
@ApiOperation(value = "流程初始化表单", response = FlowTaskDto.class)
@GetMapping(value = "/flowFormData")
public AjaxResult flowFormData(String deployId) {
return flowTaskService.flowFormData(deployId);
}
@ApiOperation(value = "获取流程变量", response = FlowTaskDto.class)
@GetMapping(value = "/processVariables/{taskId}")
public AjaxResult processVariables(@ApiParam(value = "流程任务Id") @PathVariable(value = "taskId") String taskId) {

View File

@@ -164,4 +164,11 @@ public interface IFlowTaskService {
* @return
*/
AjaxResult getNextFlowNode(FlowTaskVo flowTaskVo);
/**
* 流程初始化表单
* @param deployId
* @return
*/
AjaxResult flowFormData(String deployId);
}

View File

@@ -1000,6 +1000,26 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
return AjaxResult.success(flowNextDto);
}
/**
* 流程初始化表单
*
* @param deployId
* @return
*/
@Override
public AjaxResult flowFormData(String deployId) {
// 第一次申请获取初始化表单
if (StringUtils.isNotBlank(deployId)) {
SysForm sysForm = sysInstanceFormService.selectSysDeployFormByDeployId(deployId);
if (Objects.isNull(sysForm)) {
return AjaxResult.error("请先配置流程表单!");
}
return AjaxResult.success(JSONObject.parseObject(sysForm.getFormContent()));
} else {
return AjaxResult.error("参数错误!");
}
}
/**
* 流程完成时间处理
*