任务列表信息缺失补全
This commit is contained in:
lgh 2022-11-21 15:49:07 +08:00
parent 74b42527c6
commit 5582a6929c

View File

@ -199,6 +199,11 @@ public class CurrTaskServiceImpl extends BaseService implements CurrTaskService
currTaskInfoVo.setNowStep(nowStep);
currTaskInfoVo.setAutoExeTaskId(currTask.getAutoExeTaskId());
}else {
List<CurrTaskVo> currTaskVos=new ArrayList<>();
CurrTaskVo currTaskVo=CurrTaskVo.builder().build();
BeanUtils.copyProperties(currTask,currTaskVo);
currTaskVos.add(currTaskVo);
currTaskInfoVo.setCurrTaskVoList(currTaskVos);
currTaskInfoVo.setAllStep(currTask.getTargetPosition());
if (currTask.getStatus()==1){
currTaskInfoVo.setNowStep(currTask.getTargetPosition());