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