商品模块代码提交
This commit is contained in:
@@ -68,6 +68,10 @@ public class HotsProductVo implements Serializable {
|
|||||||
* 是否可售时间 1-是 0-否
|
* 是否可售时间 1-是 0-否
|
||||||
*/
|
*/
|
||||||
private Integer isSaleTime;
|
private Integer isSaleTime;
|
||||||
|
/**
|
||||||
|
* 起售数量
|
||||||
|
*/
|
||||||
|
private Integer suitNum;
|
||||||
/**
|
/**
|
||||||
* 商品每周销售日 如:Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday
|
* 商品每周销售日 如:Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -18,9 +18,11 @@
|
|||||||
t1.group_type,
|
t1.group_type,
|
||||||
t1.days,
|
t1.days,
|
||||||
t1.start_time,
|
t1.start_time,
|
||||||
t1.end_time
|
t1.end_time,
|
||||||
|
ifnull(t2.suit_num, 1) as suit_num
|
||||||
from tb_product t1
|
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 =
|
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
|
t2.product_id
|
||||||
left join tb_shop_prod_unit t3 on t1.unit_id = t3.id
|
left join tb_shop_prod_unit t3 on t1.unit_id = t3.id
|
||||||
|
|||||||
Reference in New Issue
Block a user