From b4e63fa07d002b9a9d91e6dc026d5190c6eea692 Mon Sep 17 00:00:00 2001 From: Tankaikai Date: Wed, 19 Feb 2025 15:29:27 +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/HotsProductVo.java | 4 ++++ .../src/main/resources/mapper/ProductMapper.xml | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cash-common/cash-common-service/src/main/java/com/czg/product/vo/HotsProductVo.java b/cash-common/cash-common-service/src/main/java/com/czg/product/vo/HotsProductVo.java index 8745ff239..0ebca6f27 100644 --- a/cash-common/cash-common-service/src/main/java/com/czg/product/vo/HotsProductVo.java +++ b/cash-common/cash-common-service/src/main/java/com/czg/product/vo/HotsProductVo.java @@ -68,6 +68,10 @@ public class HotsProductVo implements Serializable { * 是否可售时间 1-是 0-否 */ private Integer isSaleTime; + /** + * 起售数量 + */ + private Integer suitNum; /** * 商品每周销售日 如: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 2f06bf4e2..1dd1628d7 100644 --- a/cash-service/product-service/src/main/resources/mapper/ProductMapper.xml +++ b/cash-service/product-service/src/main/resources/mapper/ProductMapper.xml @@ -18,9 +18,11 @@ t1.group_type, t1.days, t1.start_time, - t1.end_time + t1.end_time, + ifnull(t2.suit_num, 1) as suit_num from tb_product t1 - left join (select x.product_id,MIN(x.sale_price) as sale_price,x.origin_price,x.member_price from tb_prod_sku x + left join (select x.product_id,MIN(x.sale_price) as sale_price,x.origin_price,x.member_price,x.suit_num from + tb_prod_sku x where x.is_del=0 and x.is_grounding = 1 and x.shop_id = #{shopId} group by x.product_id) t2 on t1.id = t2.product_id left join tb_shop_prod_unit t3 on t1.unit_id = t3.id