过滤称重

This commit is contained in:
2024-12-02 16:33:07 +08:00
parent 4e922fc3be
commit 0a971b7f2b

View File

@@ -68,7 +68,7 @@
from tb_product tb
LEFT JOIN tb_product_sku sku ON tb.id = sku.product_id and sku.is_del = 0
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
group by tb.id
order by tb.sort asc
@@ -105,7 +105,7 @@
and tb.shop_id = #{shopId}
and tb.status = 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
group by tb.id
order by tb.sort asc