|
@@ -32,12 +32,12 @@ class GoodsSalesController
|
|
|
} else {
|
|
|
$month = date('Ym');
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
$categorySearchIds = '';
|
|
|
if (!empty($categoryId)){
|
|
|
$categorySearchPath = SysCategory::where('category_id',$categoryId)->value('category_super_path');
|
|
|
$categorySearchPath .= '#'. $categoryId.'#';
|
|
|
-
|
|
|
+
|
|
|
$categorySearchIds = SysCategory::where('category_super_path','like',$categorySearchPath.'%')->pluck('category_id')->toArray();
|
|
|
$categorySearchIds = array_merge($categorySearchIds,[$categoryId]);
|
|
|
$categorySearchIds = implode(',',$categorySearchIds);
|
|
@@ -135,12 +135,12 @@ class GoodsSalesController
|
|
|
} else {
|
|
|
$month = date('Ym');
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
$categorySearchIds = '';
|
|
|
if (!empty($categoryId)){
|
|
|
$categorySearchPath = SysCategory::where('category_id',$categoryId)->value('category_super_path');
|
|
|
$categorySearchPath .= '#'. $categoryId.'#';
|
|
|
-
|
|
|
+
|
|
|
$categorySearchIds = SysCategory::where('category_super_path','like',$categorySearchPath.'%')->pluck('category_id')->toArray();
|
|
|
$categorySearchIds = array_merge($categorySearchIds,[$categoryId]);
|
|
|
$categorySearchIds = implode(',',$categorySearchIds);
|