TASK:collection sort;

This commit is contained in:
shahaibo
2025-05-30 14:04:18 +08:00
parent 448e6d2c40
commit 73bab2338e
4 changed files with 8 additions and 2 deletions

View File

@@ -25,6 +25,8 @@ public class DesignCollectionVO {
private List<String> UnfinishedList;
private String resultType;
public DesignCollectionVO() {
}
}

View File

@@ -26,6 +26,8 @@ public class PoseTransformationVO implements AllCollectionVO{
private String status;
private String collectionType;
private String resultType;
public PoseTransformationVO(Long id, String taskId, String gifUrl, String videoUrl, String firstFrameUrl, byte isLiked, String status) {
this.id = id;
this.taskId = taskId;

View File

@@ -1131,9 +1131,9 @@ public class DesignServiceImpl extends ServiceImpl<DesignMapper, Design> impleme
}
List<DesignItem> designItems = designItemService.getByDesignId(designId);
if (CollectionUtils.isEmpty(designItems)) {
return new DesignCollectionVO(designId, design.getCollectionId(), null, null, null);
return new DesignCollectionVO(designId, design.getCollectionId(), null, null, null, null);
}
return new DesignCollectionVO(designId, design.getCollectionId(), coverDesignItemToVO(designItems), null, null);
return new DesignCollectionVO(designId, design.getCollectionId(), coverDesignItemToVO(designItems), null, null, null);
}
private List<DesignCollectionItemVO> coverDesignItemToVO(List<DesignItem> designItems) {
@@ -1813,6 +1813,7 @@ public class DesignServiceImpl extends ServiceImpl<DesignMapper, Design> impleme
objectSignList.remove(objectSign);
}
result.setUnfinishedList(objectSignList);
result.setResultType(CollectionType.DESIGN.getValue());
return result;
}

View File

@@ -1024,6 +1024,7 @@ public class GenerateServiceImpl extends ServiceImpl<GenerateMapper, Generate> i
poseTransformationVO.setFirstFrameUrl(minioUtil.getPreSignedUrl(poseTransformationVO.getFirstFrameUrl(), CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
}
}
poseTransformationVO.setResultType(CollectionType.POSE_TRANSFORM.getValue());
return poseTransformationVO;
}else {
return new PoseTransformationVO();