From 2c324221a96e9b53f4f46cbf6d110bf5a40d492c Mon Sep 17 00:00:00 2001 From: Tankaikai Date: Thu, 20 Feb 2025 10:31:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E6=A8=A1=E5=9D=97=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/czg/product/vo/ShopProductVo.java | 4 ++++ .../src/main/resources/mapper/ProductMapper.xml | 1 + 2 files changed, 5 insertions(+) diff --git a/cash-common/cash-common-service/src/main/java/com/czg/product/vo/ShopProductVo.java b/cash-common/cash-common-service/src/main/java/com/czg/product/vo/ShopProductVo.java index d8e26f1b8..50d77cfda 100644 --- a/cash-common/cash-common-service/src/main/java/com/czg/product/vo/ShopProductVo.java +++ b/cash-common/cash-common-service/src/main/java/com/czg/product/vo/ShopProductVo.java @@ -76,6 +76,10 @@ public class ShopProductVo implements Serializable { * 起售数量 */ private Integer suitNum; + /** + * 是否热销 1-是 0-否 + */ + private Integer isHot; /** * 商品每周销售日 如:Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday */ diff --git a/cash-service/product-service/src/main/resources/mapper/ProductMapper.xml b/cash-service/product-service/src/main/resources/mapper/ProductMapper.xml index 04ca5bcac..f3e3416e5 100644 --- a/cash-service/product-service/src/main/resources/mapper/ProductMapper.xml +++ b/cash-service/product-service/src/main/resources/mapper/ProductMapper.xml @@ -20,6 +20,7 @@ t1.days, t1.start_time, t1.end_time, + t1.is_hot, ifnull(t2.suit_num, 1) as suit_num, t1.select_spec_info from tb_product t1