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