|
@@ -112,17 +112,18 @@ class BasicPanel extends Controller
|
|
|
->where($productModel_map)
|
|
->where($productModel_map)
|
|
|
->whereOr($productModel_other_map)
|
|
->whereOr($productModel_other_map)
|
|
|
->distinct('product_name')
|
|
->distinct('product_name')
|
|
|
- ->pluck('product_name');
|
|
|
|
|
|
|
+ ->pluck('product_name')->toarray();
|
|
|
|
|
|
|
|
|
|
+ $productModel = new ProductModel();
|
|
|
$collect_b_product_count = $productModel
|
|
$collect_b_product_count = $productModel
|
|
|
->whereIn('product_name', $productNames)
|
|
->whereIn('product_name', $productNames)
|
|
|
->where('status', 0)
|
|
->where('status', 0)
|
|
|
->where($productModel_map)
|
|
->where($productModel_map)
|
|
|
|
|
+ ->whereOr($productModel_other_map)
|
|
|
->sum('product_specs_number');
|
|
->sum('product_specs_number');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
$productModel = new ProductModel();
|
|
$productModel = new ProductModel();
|
|
|
$productModel_map = [];
|
|
$productModel_map = [];
|
|
|
$productModel_other_map = [];
|
|
$productModel_other_map = [];
|
|
@@ -151,12 +152,14 @@ class BasicPanel extends Controller
|
|
|
->where($productModel_map)
|
|
->where($productModel_map)
|
|
|
->whereOr($productModel_other_map)
|
|
->whereOr($productModel_other_map)
|
|
|
->distinct('product_name')
|
|
->distinct('product_name')
|
|
|
- ->pluck('product_name');
|
|
|
|
|
|
|
+ ->pluck('product_name')->toarray();
|
|
|
|
|
|
|
|
|
|
+ $productModel = new ProductModel();
|
|
|
$collect_c_product_count = $productModel
|
|
$collect_c_product_count = $productModel
|
|
|
->whereIn('product_name', $productNames)
|
|
->whereIn('product_name', $productNames)
|
|
|
->where('status', 0)
|
|
->where('status', 0)
|
|
|
->where($productModel_map)
|
|
->where($productModel_map)
|
|
|
|
|
+ ->whereOr($productModel_other_map)
|
|
|
->sum('product_specs_number');
|
|
->sum('product_specs_number');
|
|
|
|
|
|
|
|
|
|
|
|
@@ -190,12 +193,14 @@ class BasicPanel extends Controller
|
|
|
->where($productModel_map)
|
|
->where($productModel_map)
|
|
|
->whereOr($productModel_other_map)
|
|
->whereOr($productModel_other_map)
|
|
|
->distinct('product_name')
|
|
->distinct('product_name')
|
|
|
- ->pluck('product_name');
|
|
|
|
|
|
|
+ ->pluck('product_name')->toarray();
|
|
|
|
|
|
|
|
|
|
+ $productModel = new ProductModel();
|
|
|
$collect_oto_product_count = $productModel
|
|
$collect_oto_product_count = $productModel
|
|
|
->whereIn('product_name', $productNames)
|
|
->whereIn('product_name', $productNames)
|
|
|
->where('status', 0)
|
|
->where('status', 0)
|
|
|
->where($productModel_map)
|
|
->where($productModel_map)
|
|
|
|
|
+ ->whereOr($productModel_other_map)
|
|
|
->sum('product_specs_number');
|
|
->sum('product_specs_number');
|
|
|
|
|
|
|
|
|
|
|