From 9bc2d32c453599ff5b190ab3bd9562f9fbcf2185 Mon Sep 17 00:00:00 2001 From: Jack <46790855@qq.com> Date: Sat, 22 Nov 2025 01:54:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=BA=93=E8=A1=A8=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=20product=5Fshort=5Fname=20=E6=94=B9=E5=86=99=20sname?= =?UTF-8?q?=20=E7=AE=80=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/common/modules/library/LibraryProduct.java | 4 +++- mall-search/src/main/resources/dao/EsProductImage.xml | 6 +++--- .../resources/mapper/product/ShopProductImageMapper.xml | 8 ++++---- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/mall-common/src/main/java/com/suisung/mall/common/modules/library/LibraryProduct.java b/mall-common/src/main/java/com/suisung/mall/common/modules/library/LibraryProduct.java index 212c6a95..0caa0651 100644 --- a/mall-common/src/main/java/com/suisung/mall/common/modules/library/LibraryProduct.java +++ b/mall-common/src/main/java/com/suisung/mall/common/modules/library/LibraryProduct.java @@ -28,6 +28,9 @@ public class LibraryProduct implements Serializable { @TableField(updateStrategy = FieldStrategy.NOT_EMPTY) private String name; + @ApiModelProperty(value = "商品简称,作为匹配关键字", example = "小米12 Pro") + private String sname; + @ApiModelProperty(value = "商品标题", example = "小米12 Pro") private String title; @@ -62,7 +65,6 @@ public class LibraryProduct implements Serializable { @ApiModelProperty(value = "商品卖点", example = "绿色有机") private String selling_point; - @ApiModelProperty(value = "商品介绍", example = "商品介绍") private String intro; diff --git a/mall-search/src/main/resources/dao/EsProductImage.xml b/mall-search/src/main/resources/dao/EsProductImage.xml index 6160290f..29f99f7f 100644 --- a/mall-search/src/main/resources/dao/EsProductImage.xml +++ b/mall-search/src/main/resources/dao/EsProductImage.xml @@ -16,7 +16,7 @@ lp.id, lp.barcode, lp.name, - lp.product_short_name, + lp.sname, lp.category, lp.thumb, ( @@ -37,7 +37,7 @@ lp.id, lp.barcode, lp.name, - lp.product_short_name, + lp.sname, lp.category, lp.thumb, ( @@ -60,7 +60,7 @@ lp.id, lp.barcode, lp.name, - lp.product_short_name, + lp.sname, lp.category, lp.thumb, ( diff --git a/mall-shop/src/main/resources/mapper/product/ShopProductImageMapper.xml b/mall-shop/src/main/resources/mapper/product/ShopProductImageMapper.xml index 2b885a43..10d0e652 100644 --- a/mall-shop/src/main/resources/mapper/product/ShopProductImageMapper.xml +++ b/mall-shop/src/main/resources/mapper/product/ShopProductImageMapper.xml @@ -161,7 +161,7 @@ shop_product_image spi INNER JOIN library_product lp ON - spi.product_short_name = lp.product_short_name + spi.product_short_name = lp.sname LEFT JOIN ( SELECT @@ -178,7 +178,7 @@ WHERE spi.product_from = '1005' AND spi.item_image_default = '1' - '' ]]> + '' ]]> )t )temp where @@ -213,7 +213,7 @@ shop_product_image spi INNER JOIN library_product lp ON - spi.product_short_name = lp.product_short_name + spi.product_short_name = lp.sname LEFT JOIN ( SELECT @@ -230,7 +230,7 @@ WHERE spi.product_from = '1005' AND spi.item_image_default = '1' - '' ]]> + '' ]]> )t )temp where