切换导航条
此项目
正在载入...
登录
何书鹏
/
recruit
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
郭静帆
4 years ago
提交
b564693e57687a0ce7bb1d65cd875af736c9b1ce
1 个父辈
f3f0dc51
1 个管道 的构建
通过
耗费 10 秒
本月额外收入
变更
1
构建
2
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
12 行增加
和
0 行删除
application/api/controller/Index.php
application/api/controller/Index.php
查看文件 @
b564693
...
...
@@ -8,6 +8,7 @@ use app\api\model\Job;
use
app\api\model\JobCollect
;
use
app\api\model\JobKeyword
;
use
app\common\model\Inform
;
use
app\common\model\Label
;
use
app\common\model\User
;
use
fast\Tree
;
use
app\common\controller\Wechat
;
...
...
@@ -187,6 +188,17 @@ class Index extends Api
}
}
$where
.=
"job_name like '%
{
$keyword
}
%'"
;
$wherela
=
"title like '%
{
$keyword
}
%'"
;
$ids
=
Label
::
where
(
$wherela
)
->
field
(
'id'
)
->
column
(
'id'
);
//标签所有id
if
(
!
empty
(
$ids
)){
// 标签搜索
$label_findinset
=
[];
foreach
(
$ids
as
$label_id
){
$label_findinset
[]
=
"find_in_set(
{
$label_id
}
,label_ids)"
;
}
$label_where
=
implode
(
' or '
,
$label_findinset
);
$where
=
"(
$where
or (
$label_where
))"
;
}
}
$where
.=
$where
?
' and '
:
''
;
$where
.=
"putdata = '0'"
;
...
...
请
注册
或
登录
后发表评论