fix: 使用跨库全限定名查询product_management表
This commit is contained in:
parent
9135b064ff
commit
a75164e62d
@ -26,8 +26,8 @@ SELECT
|
|||||||
dd.id as detail_id,
|
dd.id as detail_id,
|
||||||
dd.discount,
|
dd.discount,
|
||||||
dd.discountid
|
dd.discountid
|
||||||
FROM product p
|
FROM product_management.product p
|
||||||
LEFT JOIN product_category pc ON p.category_id = pc.id
|
LEFT JOIN product_management.product_category pc ON p.category_id = pc.id
|
||||||
LEFT JOIN discount_detail dd ON dd.productid = p.id
|
LEFT JOIN discount_detail dd ON dd.productid = p.id
|
||||||
AND dd.discountid = ${discountid}$
|
AND dd.discountid = ${discountid}$
|
||||||
WHERE p.org_id = ${org_id}$ AND p.status = '1'
|
WHERE p.org_id = ${org_id}$ AND p.status = '1'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user