Commit 981e45a4 by 杨树贤

初始化品牌

parent 2fbab8e5
Showing with 5 additions and 5 deletions
...@@ -1201,13 +1201,13 @@ class DataService ...@@ -1201,13 +1201,13 @@ class DataService
//初始化主营品牌到上传限制 //初始化主营品牌到上传限制
public function initialMainBrandsToSkuRuler() public function initialMainBrandsToSkuRuler()
{ {
$suppliers = SupplierChannelModel::where('main_brands', '!=', '')->where('is_type', 0)->get()->toArray(); $suppliers = SupplierChannelModel::where('main_brands', '!=', '')->get()->toArray();
$redis = new RedisModel(); $redis = new RedisModel();
foreach ($suppliers as $supplier) { foreach ($suppliers as $supplier) {
if (DataManageModel::where('canal', $supplier['supplier_code'])->where('is_type', 0)->exists()) { // if (DataManageModel::where('canal', $supplier['supplier_code'])->where('is_type', 0)->exists()) {
dump("大数据供应商"); // dump("大数据供应商");
continue; // continue;
} // }
if (trim($supplier['main_brands'], ',')) { if (trim($supplier['main_brands'], ',')) {
$mainBrands = explode(',', trim($supplier['main_brands'], ',')); $mainBrands = explode(',', trim($supplier['main_brands'], ','));
$ruler = $redis->hget('supplier_sku_upload_ruler_v2', $supplier['supplier_id']); $ruler = $redis->hget('supplier_sku_upload_ruler_v2', $supplier['supplier_id']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment