From bb1d3bd3590129bd169c1f29a02bf61b7d4cd37e Mon Sep 17 00:00:00 2001 From: litianxiang Date: Wed, 17 Dec 2025 15:41:02 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"edit=20=E4=BA=A7=E5=93=81=E5=9B=BE?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E4=BC=9A=E5=AF=BC=E8=87=B4sort=E4=B8=8D?= =?UTF-8?q?=E5=AF=B9=E8=AF=95=E9=AA=8C5"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 6a8c87ed9511513fa1baa6feeb978cb771ba5cde. --- .../java/com/ai/da/service/impl/UserLikeGroupServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/ai/da/service/impl/UserLikeGroupServiceImpl.java b/src/main/java/com/ai/da/service/impl/UserLikeGroupServiceImpl.java index 14cc1574..511661e2 100644 --- a/src/main/java/com/ai/da/service/impl/UserLikeGroupServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/UserLikeGroupServiceImpl.java @@ -1534,7 +1534,8 @@ public class UserLikeGroupServiceImpl extends ServiceImpl collectionSorts1 = collectionSortMapper.selectList(new LambdaQueryWrapper().eq(CollectionSort::getParentId, collectionSorts.get(0).getParentId()).gt(CollectionSort::getSort, collectionSorts.get(0).getSort())); + List collectionSorts1 = collectionSortMapper.selectList(new LambdaQueryWrapper().eq(CollectionSort::getParentId, collectionSorts.get(0).getParentId()).orderByDesc(CollectionSort::getSort).last("LIMIT 1")); + if (!collectionSorts1.isEmpty()) { collectionSorts1.get(0).setSort(collectionSorts1.get(0).getSort() - 1); collectionSortMapper.updateById(collectionSorts1.get(0));