소스 검색

[智价云] 去重更新

tangyuanwang 21 시간 전
부모
커밋
2134a600c5
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/Models/Manager/Process/LowPriceGoods.php
  2. 1 0
      app/Models/Manager/Process/ViolationProduct.php

+ 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']]; //品牌名称