TASK:collection sort;
This commit is contained in:
@@ -25,6 +25,8 @@ public class DesignCollectionVO {
|
|||||||
|
|
||||||
private List<String> UnfinishedList;
|
private List<String> UnfinishedList;
|
||||||
|
|
||||||
|
private String resultType;
|
||||||
|
|
||||||
public DesignCollectionVO() {
|
public DesignCollectionVO() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ public class PoseTransformationVO implements AllCollectionVO{
|
|||||||
private String status;
|
private String status;
|
||||||
private String collectionType;
|
private String collectionType;
|
||||||
|
|
||||||
|
private String resultType;
|
||||||
|
|
||||||
public PoseTransformationVO(Long id, String taskId, String gifUrl, String videoUrl, String firstFrameUrl, byte isLiked, String status) {
|
public PoseTransformationVO(Long id, String taskId, String gifUrl, String videoUrl, String firstFrameUrl, byte isLiked, String status) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.taskId = taskId;
|
this.taskId = taskId;
|
||||||
|
|||||||
@@ -1131,9 +1131,9 @@ public class DesignServiceImpl extends ServiceImpl<DesignMapper, Design> impleme
|
|||||||
}
|
}
|
||||||
List<DesignItem> designItems = designItemService.getByDesignId(designId);
|
List<DesignItem> designItems = designItemService.getByDesignId(designId);
|
||||||
if (CollectionUtils.isEmpty(designItems)) {
|
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) {
|
private List<DesignCollectionItemVO> coverDesignItemToVO(List<DesignItem> designItems) {
|
||||||
@@ -1813,6 +1813,7 @@ public class DesignServiceImpl extends ServiceImpl<DesignMapper, Design> impleme
|
|||||||
objectSignList.remove(objectSign);
|
objectSignList.remove(objectSign);
|
||||||
}
|
}
|
||||||
result.setUnfinishedList(objectSignList);
|
result.setUnfinishedList(objectSignList);
|
||||||
|
result.setResultType(CollectionType.DESIGN.getValue());
|
||||||
return result;
|
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.setFirstFrameUrl(minioUtil.getPreSignedUrl(poseTransformationVO.getFirstFrameUrl(), CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
poseTransformationVO.setResultType(CollectionType.POSE_TRANSFORM.getValue());
|
||||||
return poseTransformationVO;
|
return poseTransformationVO;
|
||||||
}else {
|
}else {
|
||||||
return new PoseTransformationVO();
|
return new PoseTransformationVO();
|
||||||
|
|||||||
Reference in New Issue
Block a user