From abcfd7c9a28abbaab761285939e373e0943c0129 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Wed, 24 Jun 2026 21:34:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E6=8E=89=E8=B7=A8=E5=BA=93JOIN?= =?UTF-8?q?=E5=89=8D=E7=BC=80=EF=BC=8C=E5=90=8C=E5=BA=93=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 1062106..5c960e6 100644 --- a/wwwroot/discount_setting/get_products_with_discount.dspy +++ b/wwwroot/discount_setting/get_products_with_discount.dspy @@ -25,8 +25,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'