1.工作流异常
This commit is contained in:
@@ -100,4 +100,6 @@ public class FlowTaskDto implements Serializable {
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date finishTime;
|
||||
|
||||
@ApiModelProperty("此流程对应的发起表单功能")
|
||||
private String formAssId;
|
||||
}
|
||||
|
||||
@@ -4,15 +4,18 @@ package com.njcn.process.service.impl.flowable;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
|
||||
import com.njcn.common.pojo.exception.BusinessException;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.process.enums.FlowComment;
|
||||
import com.njcn.process.factory.FlowServiceFactory;
|
||||
import com.njcn.process.mapper.FlowableAssMapper;
|
||||
import com.njcn.process.pojo.dto.FlowViewerDto;
|
||||
import com.njcn.process.pojo.dto.flowable.FlowCommentDto;
|
||||
import com.njcn.process.pojo.dto.flowable.FlowTaskDto;
|
||||
import com.njcn.process.pojo.po.FlowableAss;
|
||||
import com.njcn.process.pojo.vo.flowable.FlowQueryVo;
|
||||
import com.njcn.process.pojo.vo.flowable.FlowTaskVo;
|
||||
import com.njcn.process.service.flowable.IFlowTaskService;
|
||||
@@ -72,6 +75,8 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
||||
|
||||
private final UserFeignClient userFeignClient;
|
||||
|
||||
private final FlowableAssMapper flowableAssMapper;
|
||||
|
||||
|
||||
@Override
|
||||
public Boolean getNextFlowNodeByStart(FlowTaskVo flowTaskVo) {
|
||||
@@ -331,7 +336,10 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
||||
List<Task> taskList = taskQuery.listPage(queryVo.getPageSize() * (queryVo.getPageNum() - 1), queryVo.getPageSize());
|
||||
List<FlowTaskDto> flowList = new ArrayList<>();
|
||||
for (Task task : taskList) {
|
||||
FlowableAss flowableAss = flowableAssMapper.selectOne(new LambdaQueryWrapper<FlowableAss>().eq(FlowableAss::getExecIndex,task.getProcessInstanceId()));
|
||||
|
||||
FlowTaskDto flowTask = new FlowTaskDto();
|
||||
flowTask.setFormAssId(flowableAss.getThsIndex());
|
||||
// 当前流程信息
|
||||
flowTask.setTaskId(task.getId());
|
||||
flowTask.setTaskDefKey(task.getTaskDefinitionKey());
|
||||
|
||||
Reference in New Issue
Block a user