From ef3e73a27d4bbcc3796e7ccff48e2fd2237b00b5 Mon Sep 17 00:00:00 2001 From: yuannuoxin <3339694043@qq.com> Date: Wed, 6 Nov 2024 07:23:18 +0000 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=BE=97=E5=95=86=E5=93=81=20SPU=20?= =?UTF-8?q?=E6=98=8E=E7=BB=86=20=E5=AD=98=E5=9C=A8=E5=B9=B6=E5=8F=91?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20=E8=8E=B7=E5=BE=97=E5=95=86=E5=93=81=20SPU?= =?UTF-8?q?=20=E6=98=8E=E7=BB=86=20=E5=AD=98=E5=9C=A8=E5=B9=B6=E5=8F=91?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20=20=E4=BC=9A=E9=80=A0=E6=88=90=E5=90=8C?= =?UTF-8?q?=E4=B8=80=E4=B8=AAspu=E6=9C=89=E5=A4=9A=E6=9D=A1=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E8=AE=B0=E5=BD=95=20cn.iocoder.yudao.module.product.c?= =?UTF-8?q?ontroller.app.spu.AppProductSpuController#getSpuDetail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yuannuoxin <3339694043@qq.com> --- .../product/dal/mysql/history/ProductBrowseHistoryMapper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/mysql/history/ProductBrowseHistoryMapper.java b/yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/mysql/history/ProductBrowseHistoryMapper.java index 124357cacf..2cf206ea85 100644 --- a/yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/mysql/history/ProductBrowseHistoryMapper.java +++ b/yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/mysql/history/ProductBrowseHistoryMapper.java @@ -23,7 +23,9 @@ public interface ProductBrowseHistoryMapper extends BaseMapperX() .eq(ProductBrowseHistoryDO::getUserId, userId) - .eq(ProductBrowseHistoryDO::getSpuId, spuId)); + .eq(ProductBrowseHistoryDO::getSpuId, spuId) + .last(" limit 1 ") + ); } default PageResult selectPage(ProductBrowseHistoryPageReqVO reqVO) {