|
@@ -6495,8 +6495,15 @@ class NewsService implements NewsServiceInterface
|
|
|
->select('job_resume.*', 'user.nickname as nickname', 'user.user_name as user_name', 'website.website_name as website_name', 'job_company.business_name as business_name')
|
|
|
->orderBy('updated_at', 'desc')
|
|
|
->limit(5)->get();
|
|
|
+
|
|
|
+ //获取5条用户待处理的投诉
|
|
|
+ $complaint_deal = Complaint::where('status', 2)
|
|
|
+ ->where('deal', 1)
|
|
|
+ ->whereJsonContains('re_user_ids', $user_id)
|
|
|
+ ->orderBy('updated_at', 'desc')
|
|
|
+ ->limit(5)->get();
|
|
|
// count($chat) + count($chat_group) +
|
|
|
- $count = count($apply_articale) + count($good) + count($notice) + count($complaint) + count($book) + count($job_hunting) + count($job_recruiting) + count($job_apply) + count($job_resume);
|
|
|
+ $count = count($apply_articale) + count($good) + count($notice) + count($complaint) + count($book) + count($job_hunting) + count($job_recruiting) + count($job_apply) + count($job_resume) + count($complaint_deal);
|
|
|
$result = [
|
|
|
'apply_articale' => $apply_articale,
|
|
|
'chat' => $chat,
|
|
@@ -6509,6 +6516,7 @@ class NewsService implements NewsServiceInterface
|
|
|
'job_recruiting' => $job_recruiting,
|
|
|
'job_apply' => $job_apply,
|
|
|
'job_resume' => $job_resume,
|
|
|
+ 'complaint_deal' => $complaint_deal,
|
|
|
'count' => $count,
|
|
|
];
|
|
|
} elseif ($type_id == 12) {
|