|
...
|
...
|
@@ -44,12 +44,13 @@ class GeoQuestionResLogic extends BaseLogic |
|
|
|
public function getResultList($map = [],$page = 1,$row = 20,$order = 'id'){
|
|
|
|
$filed = ['id','project_id','question_id','platform','question','keywords','url','created_at','updated_at'];
|
|
|
|
$result = GeoQuestionResult::select($filed)
|
|
|
|
->where(['project_id' => $map['project_id']])
|
|
|
|
->where(function($query) {
|
|
|
|
$query->where('keywords', '!=', '[]')
|
|
|
|
->orWhere('url', '!=', '[]');
|
|
|
|
})
|
|
|
|
->orderByRaw('LENGTH(question) ASC')
|
|
|
|
->get();
|
|
|
|
->paginate($row, $filed, 'page', $page);
|
|
|
|
$data = empty($result) ? [] : $result->toArray();
|
|
|
|
|
|
|
|
// $filed = ['id','project_id','question_id','platform','question','keywords','url','created_at','updated_at'];
|
...
|
...
|
|