This commit is contained in:
yumoqing 2026-06-29 11:00:33 +08:00
parent a75164e62d
commit b45c85448a

View File

@ -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'