测试 sql
SELECT a.id,a.OrderSourceId,a.sku,c.IsVariant,c.IsMainVariant,c.ParentId,c.IsGroup,a.ProductId,b.AttributeId,b.ValuesIds,b.Values,b.LastModificationTime
FROM m_allegro_listing a
INNER JOIN (SELECT MAX(id) as id FROM m_allegro_listing WHERE CustomerId=1 GROUP BY sku) t ON a.id=t.id
INNER JOIN m_allegro_listing_attribute b ON a.CustomerId=b.CustomerId AND a.OrderSourceId=b.OrderSourceId AND a.ProductId=b.ProductId AND b.AttributeId=225693
INNER JOIN p_product c ON a.CustomerId=c.CustomerId AND a.sku=c.sku
LIMIT 1000









美可多 初始化验证
SELECT
a.id,
a.OrderSourceId,
a.sku,
a.ProductId,
b.AttributeId,
b.ValueName,
a.LastModificationTime,
b.LastModificationTime
FROM
m_mercadolibre_listing a
JOIN (SELECT MAX(id) as id FROM m_mercadolibre_listing WHERE CustomerId=1 AND OrderSourceId=10833 GROUP BY OrderSourceId,sku) t ON a.id=t.id
JOIN m_mercadolibre_listing_attribute b ON a.CustomerId = b.CustomerId AND a.OrderSourceId = b.OrderSourceId AND a.ProductId = b.ProductId AND b.AttributeId = 'GTIN'
WHERE a.CustomerId=1 AND a.OrderSourceId=10833 AND a.sku='7817613'