|
@@ -44,7 +44,7 @@ class Complaint extends BaseController
|
|
|
$query->where('complaint.created_at', '<=', $params['end_time'] . ' 23:59:59');
|
|
$query->where('complaint.created_at', '<=', $params['end_time'] . ' 23:59:59');
|
|
|
}
|
|
}
|
|
|
$count = $query->count();
|
|
$count = $query->count();
|
|
|
- $list = $query->with(['complaint_item', 'user'])
|
|
|
|
|
|
|
+ $list = $query->with(['complaint_item', 'user', 'operation'])
|
|
|
->field(['complaint.*', 'admin.nickname','admin.phone'])
|
|
->field(['complaint.*', 'admin.nickname','admin.phone'])
|
|
|
->order('complaint.created_at','desc')
|
|
->order('complaint.created_at','desc')
|
|
|
->limit($limit)
|
|
->limit($limit)
|