过滤称重
This commit is contained in:
@@ -68,7 +68,7 @@
|
|||||||
from tb_product tb
|
from tb_product tb
|
||||||
LEFT JOIN tb_product_sku sku ON tb.id = sku.product_id and sku.is_del = 0
|
LEFT JOIN tb_product_sku sku ON tb.id = sku.product_id and sku.is_del = 0
|
||||||
where tb.id in (${ids})
|
where tb.id in (${ids})
|
||||||
and tb.is_grounding = 1 and tb.type!='coupon' and tb.status = 1 and tb.is_del = 0
|
and tb.is_grounding = 1 and tb.type!='coupon' and tb.type != 'weigh' and tb.status = 1 and tb.is_del = 0
|
||||||
and tb.days LIKE concat('%',DAYNAME(CURRENT_DATE),'%') and tb.start_time <= CURRENT_TIMESTAMP and tb.end_time >= CURRENT_TIMESTAMP
|
and tb.days LIKE concat('%',DAYNAME(CURRENT_DATE),'%') and tb.start_time <= CURRENT_TIMESTAMP and tb.end_time >= CURRENT_TIMESTAMP
|
||||||
group by tb.id
|
group by tb.id
|
||||||
order by tb.sort asc
|
order by tb.sort asc
|
||||||
@@ -105,7 +105,7 @@
|
|||||||
and tb.shop_id = #{shopId}
|
and tb.shop_id = #{shopId}
|
||||||
and tb.status = 1
|
and tb.status = 1
|
||||||
and tb.is_grounding = 1
|
and tb.is_grounding = 1
|
||||||
and tb.type != 'coupon' and tb.is_del = 0
|
and tb.type != 'coupon' and tb.type != 'weigh' and tb.is_del = 0
|
||||||
and tb.days LIKE concat('%',DAYNAME(CURRENT_DATE),'%') and tb.start_time <= CURRENT_TIMESTAMP and tb.end_time >= CURRENT_TIMESTAMP
|
and tb.days LIKE concat('%',DAYNAME(CURRENT_DATE),'%') and tb.start_time <= CURRENT_TIMESTAMP and tb.end_time >= CURRENT_TIMESTAMP
|
||||||
group by tb.id
|
group by tb.id
|
||||||
order by tb.sort asc
|
order by tb.sort asc
|
||||||
|
|||||||
Reference in New Issue
Block a user