TASK:collection sort;

This commit is contained in:
shahaibo
2025-06-03 14:39:56 +08:00
parent a9172dcd36
commit f69eaa4fe3

View File

@@ -1332,6 +1332,7 @@ public class DesignServiceImpl extends ServiceImpl<DesignMapper, Design> impleme
qw.lambda().orderByDesc(CollectionSort::getSort); qw.lambda().orderByDesc(CollectionSort::getSort);
List<CollectionSort> userLikeSorts = collectionSortMapper.selectList(qw); List<CollectionSort> userLikeSorts = collectionSortMapper.selectList(qw);
CollectionSort userLikeSort = getUserLikeSortByUserLikeId(relationId, relationType, projectId); CollectionSort userLikeSort = getUserLikeSortByUserLikeId(relationId, relationType, projectId);
if (Objects.nonNull(userLikeSort)) {
Long userLikeSortId = userLikeSort.getId(); Long userLikeSortId = userLikeSort.getId();
for (CollectionSort likeSort : userLikeSorts) { for (CollectionSort likeSort : userLikeSorts) {
if (Objects.equals(likeSort.getId(), userLikeSortId)) { if (Objects.equals(likeSort.getId(), userLikeSortId)) {
@@ -1343,6 +1344,7 @@ public class DesignServiceImpl extends ServiceImpl<DesignMapper, Design> impleme
} }
} }
} }
}
@Override @Override
public CollectionSort getUserLikeSortByUserLikeId(Long userLikeId, String relationType, Long projectId) { public CollectionSort getUserLikeSortByUserLikeId(Long userLikeId, String relationType, Long projectId) {