bugfix: single design没结果,posetransfer没回显正在进行的结果;

This commit is contained in:
shahaibo
2025-06-26 11:21:35 +08:00
parent 84691f45b5
commit 6ad5d373d5
2 changed files with 6 additions and 1 deletions

View File

@@ -773,7 +773,7 @@ public class DesignServiceImpl extends ServiceImpl<DesignMapper, Design> impleme
Long relationId = Optional.ofNullable(bodyPointTest.get("relation_id"))
.filter(Number.class::isInstance)
.map(num -> ((Number) num).longValue())
.orElseThrow(null);
.orElse(null);
// 转换 relation_type (String)
String relationType = Optional.ofNullable(bodyPointTest.get("relation_type"))

View File

@@ -1265,6 +1265,11 @@ public class GenerateServiceImpl extends ServiceImpl<GenerateMapper, Generate> i
if (!poseTransformationVO.getStatus().equals("Invalid") && !poseTransformationVO.getStatus().equals("Failed")) {
vos.add(poseTransformationVO);
}
}else {
PoseTransformationVO poseTransformationVO = CopyUtil.copyObject(item, PoseTransformationVO.class);
poseTransformationVO.setTaskId(item.getUniqueId());
poseTransformationVO.setStatus("Executing");
vos.add(poseTransformationVO);
}
});
}