岗位类型全称相关性搜索
This commit is contained in:
@@ -153,4 +153,8 @@ public class PositionPageQueryDTO extends PageQueryDTO<PositionDTO> {
|
||||
|
||||
@ApiModelProperty("综合搜索(企业名称/招聘标题/工作内容/工作地址)")
|
||||
private String nameOr;
|
||||
|
||||
@ApiModelProperty("岗位类型全称相关性搜索")
|
||||
private String positionTypeFullNameRelate;
|
||||
|
||||
}
|
||||
|
||||
@@ -138,6 +138,15 @@
|
||||
<bind name="nameOrLike" value="'%' + param.nameOr + '%'"/>
|
||||
AND (c.company_name like #{nameOrLike} OR t.recruit_title like #{nameOrLike} OR t.job_content like #{nameOrLike} OR pa.detail_address like #{nameOrLike})
|
||||
</if>
|
||||
<if test='param.positionTypeFullNameRelate != null and param.positionTypeFullNameRelate.trim() != ""'>
|
||||
<bind name="positionTypeFullNameRelate" value="'%' + param.positionTypeFullNameRelate + '%'"/>
|
||||
AND substring(t.position_type,1,2) IN (
|
||||
SELECT DISTINCT substring(pt.code,1,2)
|
||||
FROM hr_position_type pt
|
||||
WHERE pt.deleted = 0
|
||||
AND pt.full_name LIKE #{positionTypeFullNameRelate}
|
||||
)
|
||||
</if>
|
||||
ORDER BY t.create_time DESC, t.id DESC
|
||||
</select>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user