商品模块代码提交

This commit is contained in:
Tankaikai
2025-02-19 15:29:27 +08:00
parent bac894dfbc
commit b4e63fa07d
2 changed files with 8 additions and 2 deletions

View File

@@ -68,6 +68,10 @@ public class HotsProductVo implements Serializable {
* 是否可售时间 1-是 0-否
*/
private Integer isSaleTime;
/**
* 起售数量
*/
private Integer suitNum;
/**
* 商品每周销售日 如Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday
*/

View File

@@ -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