From 538ced5cd246088c08d3dd2d465ba7e55769ea0f Mon Sep 17 00:00:00 2001 From: liyj <1617420630@qq.com> Date: Wed, 29 Oct 2025 16:20:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=95=B0=E6=8D=AE=E4=B8=8D?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=95=86=E5=93=81=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/common/modules/product/ShopProductIndex.java | 5 ++++- .../product/service/impl/ShopProductBaseServiceImpl.java | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/mall-common/src/main/java/com/suisung/mall/common/modules/product/ShopProductIndex.java b/mall-common/src/main/java/com/suisung/mall/common/modules/product/ShopProductIndex.java index b85fb9c0..2b07f1ee 100644 --- a/mall-common/src/main/java/com/suisung/mall/common/modules/product/ShopProductIndex.java +++ b/mall-common/src/main/java/com/suisung/mall/common/modules/product/ShopProductIndex.java @@ -10,6 +10,8 @@ import lombok.experimental.Accessors; import java.io.Serializable; import java.math.BigDecimal; +import static com.baomidou.mybatisplus.annotation.FieldStrategy.NOT_EMPTY; + /** *

* 产品索引表-不读取数据只读主键 @@ -33,10 +35,11 @@ public class ShopProductIndex implements Serializable { private Long product_id; @ApiModelProperty(value = "产品名称:店铺平台先在对用表中检索后通过id检索,检索使用") - + @TableField(updateStrategy=NOT_EMPTY) private String product_name; @ApiModelProperty(value = "名称索引关键字(DOT)") + @TableField(updateStrategy=NOT_EMPTY) private String product_name_index; @ApiModelProperty(value = "店铺编号") diff --git a/mall-shop/src/main/java/com/suisung/mall/shop/product/service/impl/ShopProductBaseServiceImpl.java b/mall-shop/src/main/java/com/suisung/mall/shop/product/service/impl/ShopProductBaseServiceImpl.java index ae63a1b1..0da88460 100644 --- a/mall-shop/src/main/java/com/suisung/mall/shop/product/service/impl/ShopProductBaseServiceImpl.java +++ b/mall-shop/src/main/java/com/suisung/mall/shop/product/service/impl/ShopProductBaseServiceImpl.java @@ -5364,11 +5364,14 @@ public class ShopProductBaseServiceImpl extends BaseServiceImpl