From b45c85448a47139cf350b196e4fdf1f412c2b773 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 29 Jun 2026 11:00:33 +0800 Subject: [PATCH] bugfix --- wwwroot/discount_setting/get_products_with_discount.dspy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wwwroot/discount_setting/get_products_with_discount.dspy b/wwwroot/discount_setting/get_products_with_discount.dspy index 91b64ab..8fabdcd 100644 --- a/wwwroot/discount_setting/get_products_with_discount.dspy +++ b/wwwroot/discount_setting/get_products_with_discount.dspy @@ -26,8 +26,8 @@ SELECT dd.id as detail_id, dd.discount, dd.discountid -FROM product_management.product p -LEFT JOIN product_management.product_category pc ON p.category_id = pc.id +FROM product p +LEFT JOIN product_category pc ON p.category_id = pc.id LEFT JOIN discount_detail dd ON dd.productid = p.id AND dd.discountid = ${discountid}$ WHERE p.org_id = ${org_id}$ AND p.status = '1'