This commit is contained in:
邹宗楠
2025-02-07 17:26:24 +08:00
parent bb3af65225
commit 5797baa6e7
2 changed files with 16 additions and 10 deletions

View File

@@ -145,12 +145,15 @@ func (c *OrderManager) GetOrderSkuInfo(ctx *jxcontext.Context, vendorOrderID str
t3.img5 image5,
t3.desc_img descImg,
t3.price price,
b.location_code locationCode2,
b.stock skuStock,
t3.upc
FROM order_sku t1
LEFT JOIN goods_order t6 ON t6.vendor_order_id = t1.vendor_order_id AND t6.vendor_id = t1.vendor_id
LEFT JOIN store t5 ON t5.id = IF(t6.jx_store_id <> 0, t6.jx_store_id, t6.store_id)
LEFT JOIN sku t2 ON IF(t1.jx_sku_id != 0, t1.jx_sku_id, t1.sku_id) = t2.id/* AND t2.deleted_at = ?*/
LEFT JOIN sku_name t3 ON t2.name_id = t3.id/* AND t3.deleted_at = ?*/
LEFT JOIN store_sku_bind b ON b.sku_id = IF(t1.jx_sku_id <> 0, t1.jx_sku_id, t1.sku_id)
WHERE t1.vendor_order_id = ? AND t1.vendor_id = ?
ORDER BY t1.id
`, fullSkuNameSQL)