作者 lyh

gx统计数据

@@ -9,6 +9,7 @@ @@ -9,6 +9,7 @@
9 9
10 namespace App\Console\Commands\ProjectWeeklyReport; 10 namespace App\Console\Commands\ProjectWeeklyReport;
11 11
  12 +use App\Models\Blog\Blog;
12 use App\Models\Com\Notify; 13 use App\Models\Com\Notify;
13 use App\Models\Com\V6WeeklyReport; 14 use App\Models\Com\V6WeeklyReport;
14 use App\Models\HomeCount\Count; 15 use App\Models\HomeCount\Count;
@@ -98,6 +99,8 @@ class WeekProject extends Command @@ -98,6 +99,8 @@ class WeekProject extends Command
98 $data['product_num'] = $productModel->counts(['status'=>1]) ?? 0; 99 $data['product_num'] = $productModel->counts(['status'=>1]) ?? 0;
99 $newsModel = new News(); 100 $newsModel = new News();
100 $data['news_num'] = $newsModel->counts(['status'=>1]) ?? 0; 101 $data['news_num'] = $newsModel->counts(['status'=>1]) ?? 0;
  102 + $blogModel = new Blog();
  103 + $data['blog_num'] = $blogModel->counts(['status'=>1]) ?? 0;
101 $notifyModel = new Notify(); 104 $notifyModel = new Notify();
102 $data['main_update_num'] = $notifyModel->counts(['type'=>1,'route'=>1,'project_id'=>$value['id']]) ?? 0; 105 $data['main_update_num'] = $notifyModel->counts(['type'=>1,'route'=>1,'project_id'=>$value['id']]) ?? 0;
103 $data['aggregation_update_num'] = $notifyModel->counts(['type'=>1,'route'=>4,'project_id'=>$value['id']]) ?? 0; 106 $data['aggregation_update_num'] = $notifyModel->counts(['type'=>1,'route'=>4,'project_id'=>$value['id']]) ?? 0;