From b459148d58fd235d6023bdd6a604c668a3d6d70e Mon Sep 17 00:00:00 2001 From: litianxiang Date: Wed, 17 Dec 2025 13:49:07 +0800 Subject: [PATCH] =?UTF-8?q?edit=20=E4=BA=A7=E5=93=81=E5=9B=BE=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E4=BC=9A=E5=AF=BC=E8=87=B4sort=E4=B8=8D=E5=AF=B9?= =?UTF-8?q?=E8=AF=95=E9=AA=8C2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ai/da/service/impl/UserLikeGroupServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 b885f389..a481a9d8 100644 --- a/src/main/java/com/ai/da/service/impl/UserLikeGroupServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/UserLikeGroupServiceImpl.java @@ -1461,18 +1461,18 @@ public class UserLikeGroupServiceImpl extends ServiceImpl().lambda().eq(CollectionSort::getRelationId, toProductImageResult.getId())); + collectionSortMapper.delete(new QueryWrapper().lambda().eq(CollectionSort::getRelationId, toProductImageResult.getId()).orderByDesc(BaseEntity::getCreateTime).last("limit 1")); results.add(new MagicToolResultVO(taskId, "Fail")); } else if (fluxResult.equals("Fail") || fluxResult.equals("Pending")) { toProductImageResult.setStatus(fluxResult); toProductImageResultMapper.updateById(toProductImageResult); - collectionSortMapper.delete(new QueryWrapper().lambda().eq(CollectionSort::getRelationId, toProductImageResult.getId())); + collectionSortMapper.delete(new QueryWrapper().lambda().eq(CollectionSort::getRelationId, toProductImageResult.getId()).orderByDesc(BaseEntity::getCreateTime).last("limit 1")); results.add(new MagicToolResultVO(taskId, fluxResult)); } else { fluxResult="Fail"; toProductImageResult.setStatus(fluxResult); toProductImageResultMapper.updateById(toProductImageResult); - collectionSortMapper.delete(new QueryWrapper().lambda().eq(CollectionSort::getRelationId, toProductImageResult.getId())); + collectionSortMapper.delete(new QueryWrapper().lambda().eq(CollectionSort::getRelationId, toProductImageResult.getId()).orderByDesc(BaseEntity::getCreateTime).last("limit 1")); results.add(new MagicToolResultVO(taskId, fluxResult)); // results.add(processFluxResult(fluxResult, toProductImageResult, taskId, toProductImageRecord.getPrompt())); // // 扣积分