合并分支 'zhl' 到 'master'
修改排序和显示结果 查看合并请求 !2321
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -44,7 +44,7 @@ class GeoQuestionResLogic extends BaseLogic | @@ -44,7 +44,7 @@ class GeoQuestionResLogic extends BaseLogic | ||
| 44 | public function getResultList($map = [],$page = 1,$row = 20,$order = 'id'){ | 44 | public function getResultList($map = [],$page = 1,$row = 20,$order = 'id'){ |
| 45 | $filed = ['id','project_id','question_id','platform','question','keywords','url','created_at','updated_at']; | 45 | $filed = ['id','project_id','question_id','platform','question','keywords','url','created_at','updated_at']; |
| 46 | $result = GeoQuestionResult::select($filed) | 46 | $result = GeoQuestionResult::select($filed) |
| 47 | - ->where(['project_id' => $map['project_id']]) | 47 | + ->where($map) |
| 48 | ->where(function($query) { | 48 | ->where(function($query) { |
| 49 | $query->where('keywords', '!=', '[]') | 49 | $query->where('keywords', '!=', '[]') |
| 50 | ->orWhere('url', '!=', '[]'); | 50 | ->orWhere('url', '!=', '[]'); |
-
请 注册 或 登录 后发表评论