商品模块代码提交
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user