|
|
@@ -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']]; //品牌名称
|
|
|
@@ -133,8 +134,6 @@ class ViolationProduct extends Model
|
|
|
try {
|
|
|
//执行挂网数据统计
|
|
|
$data = $this->handleCountData($data);
|
|
|
-
|
|
|
- $ViolationProductMemberModel = new ViolationProductMemberModel();
|
|
|
$insert_data = [
|
|
|
'company_id' => $data['company_id'],
|
|
|
'source_id' => $data['source_id'],
|
|
|
@@ -202,6 +201,7 @@ class ViolationProduct extends Model
|
|
|
];
|
|
|
}
|
|
|
}
|
|
|
+ $ViolationProductMemberModel = new ViolationProductMemberModel();
|
|
|
$ViolationProductMemberModel->insert($first_responsible_person_data);
|
|
|
$responsible_persons = $data['responsible_person'] != '' ? explode(',', $data['responsible_person']) : [];
|
|
|
$responsible_person_data = [];
|
|
|
@@ -230,6 +230,7 @@ class ViolationProduct extends Model
|
|
|
];
|
|
|
}
|
|
|
}
|
|
|
+ $ViolationProductMemberModel = new ViolationProductMemberModel();
|
|
|
$ViolationProductMemberModel->insert($responsible_person_data);
|
|
|
$source_responsible_persons = $data['source_responsible_person'] != '' ? explode(',', $data['source_responsible_person']) : [];
|
|
|
$source_responsible_person_data = [];
|
|
|
@@ -258,6 +259,7 @@ class ViolationProduct extends Model
|
|
|
];
|
|
|
}
|
|
|
}
|
|
|
+ $ViolationProductMemberModel = new ViolationProductMemberModel();
|
|
|
$ViolationProductMemberModel->insert($source_responsible_person_data);
|
|
|
//添加通知
|
|
|
// $this->addNotices($insert_data, $ViolationProduct_id);
|