user position nameOr

This commit is contained in:
ran.shang
2025-08-22 09:41:54 +08:00
parent cc3819e2f3
commit c3e30e8a44
2 changed files with 7 additions and 0 deletions

View File

@@ -150,4 +150,7 @@ public class PositionPageQueryDTO extends PageQueryDTO<PositionDTO> {
private BigDecimal salaryLow; private BigDecimal salaryLow;
private String detailAddressLike; private String detailAddressLike;
@ApiModelProperty("综合搜索(企业名称/招聘标题/工作内容/工作地址)")
private String nameOr;
} }

View File

@@ -134,6 +134,10 @@
<bind name="detailAddressLike" value="'%' + param.detailAddressLike + '%'"/> <bind name="detailAddressLike" value="'%' + param.detailAddressLike + '%'"/>
AND pa.detail_address like #{detailAddressLike} AND pa.detail_address like #{detailAddressLike}
</if> </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 ORDER BY t.create_time DESC, t.id DESC
</select> </select>