正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -168,13 +168,13 @@ class ProjectController extends BaseController | @@ -168,13 +168,13 @@ class ProjectController extends BaseController | ||
| 168 | * @return mixed | 168 | * @return mixed |
| 169 | */ | 169 | */ |
| 170 | public function searchType(&$query){ | 170 | public function searchType(&$query){ |
| 171 | + $query->where('gl_project.extend_type', '!=' ,5); | ||
| 171 | if(isset($this->map['type'])){ | 172 | if(isset($this->map['type'])){ |
| 172 | if (in_array($this->map['type'], [Project::TYPE_ZERO, Project::TYPE_ONE, Project::TYPE_TWO, Project::TYPE_THREE])) | 173 | if (in_array($this->map['type'], [Project::TYPE_ZERO, Project::TYPE_ONE, Project::TYPE_TWO, Project::TYPE_THREE])) |
| 173 | $query->where('gl_project.type', $this->map['type']); | 174 | $query->where('gl_project.type', $this->map['type']); |
| 174 | else{ | 175 | else{ |
| 175 | $query->whereIn('gl_project.type', [Project::TYPE_FOUR,Project::TYPE_SIX]); | 176 | $query->whereIn('gl_project.type', [Project::TYPE_FOUR,Project::TYPE_SIX]); |
| 176 | } | 177 | } |
| 177 | - $query->where('gl_project.extend_type', '!=' ,5); | ||
| 178 | } | 178 | } |
| 179 | if(isset($this->map['uptime']) && is_array($this->map['uptime'])){ | 179 | if(isset($this->map['uptime']) && is_array($this->map['uptime'])){ |
| 180 | $query->whereBetween('gl_project.uptime', $this->map['uptime']); | 180 | $query->whereBetween('gl_project.uptime', $this->map['uptime']); |
-
请 注册 或 登录 后发表评论