Sfoglia il codice sorgente

[智价云] 去重更新

tangyuanwang 21 ore fa
parent
commit
2134a600c5

+ 1 - 0
app/Models/Manager/Process/LowPriceGoods.php

@@ -124,6 +124,7 @@ class LowPriceGoods extends Model
         if ($is_import == false) {
             //去重规则:品牌方公司ID+店铺公司名称+店铺名称+品牌名称+商品名称+规格+盒数(针对采集)
             $source_where[] = ['company_id', '=', $data['company_id']]; //品牌方公司ID
+            $source_where[] = ['platform', '=', $data['platform']]; //平台
             $source_where[] = ['company_name', '=', $data['company_name']]; //店铺公司名称
             $source_where[] = ['store_name', '=', $data['store_name']]; //店铺名称
             $source_where[] = ['product_brand', '=', $data['product_brand']]; //品牌名称

+ 1 - 0
app/Models/Manager/Process/ViolationProduct.php

@@ -118,6 +118,7 @@ class ViolationProduct extends Model
         if ($is_import == false) {
             //去重规则:品牌方公司ID+店铺公司名称+店铺名称+品牌名称+商品名称+规格+盒数(针对采集)
             $source_where[] = ['company_id', '=', $data['company_id']]; //品牌方公司ID
+            $source_where[] = ['platform', '=', $data['platform']]; //平台
             $source_where[] = ['company_name', '=', $data['company_name']]; //店铺公司名称
             $source_where[] = ['store_name', '=', $data['store_name']]; //店铺名称
             $source_where[] = ['product_brand', '=', $data['product_brand']]; //品牌名称