TASK:collection sort;
This commit is contained in:
@@ -25,6 +25,8 @@ public class DesignCollectionVO {
|
||||
|
||||
private List<String> UnfinishedList;
|
||||
|
||||
private String resultType;
|
||||
|
||||
public DesignCollectionVO() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user