Commit 1fcea9ba by 杨树贤

统计

parent b0d29fa4
...@@ -27,6 +27,7 @@ class StatisticsSkuUploadService ...@@ -27,6 +27,7 @@ class StatisticsSkuUploadService
'id', 'id',
'supplier_code' 'supplier_code'
])->get()->groupBy('supplier_code')->toArray(); ])->get()->groupBy('supplier_code')->toArray();
foreach ($logIdsGroupBySupplierCode as $supplierCode => $items) { foreach ($logIdsGroupBySupplierCode as $supplierCode => $items) {
$logIds = array_column($items, 'id'); $logIds = array_column($items, 'id');
$exists = $redis->hget('half_year_brand_sku_upload_statistics', $supplierCode); $exists = $redis->hget('half_year_brand_sku_upload_statistics', $supplierCode);
...@@ -40,6 +41,7 @@ class StatisticsSkuUploadService ...@@ -40,6 +41,7 @@ class StatisticsSkuUploadService
->where('log_id', $logId) ->where('log_id', $logId)
->where('status', 3) ->where('status', 3)
->groupBy('brand_name')->get(); ->groupBy('brand_name')->get();
dd($countByBrandName);
if (empty($countByBrandName)) { if (empty($countByBrandName)) {
continue; continue;
} }
......
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