user position nameOr
This commit is contained in:
@@ -150,4 +150,7 @@ public class PositionPageQueryDTO extends PageQueryDTO<PositionDTO> {
|
||||
private BigDecimal salaryLow;
|
||||
|
||||
private String detailAddressLike;
|
||||
|
||||
@ApiModelProperty("综合搜索(企业名称/招聘标题/工作内容/工作地址)")
|
||||
private String nameOr;
|
||||
}
|
||||
|
||||
@@ -134,6 +134,10 @@
|
||||
<bind name="detailAddressLike" value="'%' + param.detailAddressLike + '%'"/>
|
||||
AND pa.detail_address like #{detailAddressLike}
|
||||
</if>
|
||||
<if test='param.nameOr != null and param.nameOr.trim() != ""'>
|
||||
<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>
|
||||
ORDER BY t.create_time DESC, t.id DESC
|
||||
</select>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user