@@ -30,7 +30,7 @@ func ListShopSpecSources(q Execer, shopName string) ([]ShopSpecSource, error) {
|
||||
pp.goods_id, pp.deleted_at, pp.skus_json
|
||||
FROM shopee_products sp
|
||||
LEFT JOIN pdd_products pp ON pp.goods_id = sp.pdd_goods_id
|
||||
WHERE sp.shopee_shop_name = ?
|
||||
WHERE sp.deleted_at IS NULL AND sp.shopee_shop_name = ?
|
||||
ORDER BY sp.goods_id`, strings.TrimSpace(shopName))
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("读取店铺规格对比数据失败: %w", err)
|
||||
@@ -65,7 +65,7 @@ func ListShopSpecSources(q Execer, shopName string) ([]ShopSpecSource, error) {
|
||||
SELECT sk.goods_id, sk.color, sk.size, sk.parse_ok
|
||||
FROM shopee_skus sk
|
||||
JOIN shopee_products sp ON sp.goods_id = sk.goods_id
|
||||
WHERE sp.shopee_shop_name = ?
|
||||
WHERE sp.deleted_at IS NULL AND sp.shopee_shop_name = ?
|
||||
ORDER BY sk.goods_id, sk.sku_id`, strings.TrimSpace(shopName))
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("读取店铺正式规格失败: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user