cody 2 years ago
parent 7664ebc0d5
commit 8d54e575d5

@ -66,6 +66,7 @@ class HomeController extends CommonController
// 各产品占比
$lies = [];
$product = Product::where('project_id', $project_id)->first();
dd($product->toArray());
if($product){
$productItem = ProductItems::where('product_id', $product->id)->get();
$factor = FactorItems::where('factor_id', $product->statistic_factor_id)->get();
@ -75,7 +76,7 @@ class HomeController extends CommonController
return $this->getLies($productItem, $factor, $order_total);
});
}
$allMontn = [
date("Y") . '-01',
date("Y") . '-02',

Loading…
Cancel
Save