This commit is contained in:
seb
2026-09-25 12:30:45 +02:00
parent b5255bdd17
commit 607e6cc0ac
10 changed files with 98 additions and 124 deletions

View File

@@ -57,7 +57,7 @@ OUTER APPLY (
) first_brand_pic
LEFT JOIN pic brand_pic ON brand_pic.id = first_brand_pic.pic_id
LEFT JOIN article father ON father.id = a.fatherarticle_id
WHERE a.sku = @sku
WHERE a.sku = @sku AND (@companyId IS NULL OR a.company_id = @companyId)
`;
export const GET_DETAIL_BY_ARTICLE_ID = `