|
@@ -2416,7 +2416,7 @@ class NewsService implements NewsServiceInterface
|
|
->when(!empty($data['status1']), function ($query) use ($data) {
|
|
->when(!empty($data['status1']), function ($query) use ($data) {
|
|
$query->whereIn('complaint.status', [1, 3]); //1待审核2已审核3已拒绝
|
|
$query->whereIn('complaint.status', [1, 3]); //1待审核2已审核3已拒绝
|
|
})
|
|
})
|
|
- ->when(!empty($data['deal_user']), function ($query) use ($data) {
|
|
|
|
|
|
+ ->when(!empty($data['deal_user']) && $type_id != 10000, function ($query) use ($data) {
|
|
//json re_user_ids data[user_id]是不是在里面
|
|
//json re_user_ids data[user_id]是不是在里面
|
|
$query->whereRaw('JSON_CONTAINS(complaint.re_user_ids, \'' . $data['user_id'] . '\')');
|
|
$query->whereRaw('JSON_CONTAINS(complaint.re_user_ids, \'' . $data['user_id'] . '\')');
|
|
})
|
|
})
|