fix: 去掉跨库JOIN前缀,同库直接引用
This commit is contained in:
parent
79756800d7
commit
abcfd7c9a2
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user