|
|
|
@ -41,9 +41,9 @@ class OtherController extends CommonController
|
|
|
|
public function home()
|
|
|
|
public function home()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// 校友总数
|
|
|
|
// 校友总数
|
|
|
|
$schoolmate['schoolmate_total'] = User::where('is_schoolmate', 1)->distinct('mobile')->count();
|
|
|
|
$schoolmate['schoolmate_total'] = User::where('is_schoolmate', 1)->count();
|
|
|
|
// 2025年校友数
|
|
|
|
// 2025年校友数
|
|
|
|
$schoolmate['schoolmate_year'] = User::where('is_schoolmate', 1)->where('created_at', 'like', '%' . date('Y') . '%')->distinct('mobile')->count();
|
|
|
|
$schoolmate['schoolmate_year'] = User::where('is_schoolmate', 1)->where('created_at', 'like', '%' . date('Y') . '%')->count();
|
|
|
|
// 上市企业总市值
|
|
|
|
// 上市企业总市值
|
|
|
|
$company['company_market'] = Company::where('company_market', 1)->sum('market_value');
|
|
|
|
$company['company_market'] = Company::where('company_market', 1)->sum('market_value');
|
|
|
|
// 校友企业总融资额
|
|
|
|
// 校友企业总融资额
|
|
|
|
|