1.推荐岗位时,企业只查询自己发布的岗位

This commit is contained in:
sh
2025-10-23 18:57:53 +08:00
parent 115f47118f
commit d4683f1299
9 changed files with 54 additions and 9 deletions

View File

@@ -101,4 +101,19 @@
</if>
</select>
<select id="selectApplyJobUserList" parameterType="com.ruoyi.common.core.domain.entity.AppUser" resultType="com.ruoyi.cms.domain.vo.CandidateVO">
select b.job_title jobName,l.name companyName,e.* from job_apply a
INNER join job b on a.job_id=b.job_id and b.del_flag='0'
INNER join app_user e on a.user_id =e.user_id and e.del_flag='0'
INNER join company l on b.company_id =l.company_id and l.del_flag='0'
where a.del_flag='0'
<if test="company != null and company.jobTitle != null and company.jobTitle != ''"> and b.job_title like concat('%', cast(#{company.jobTitle, jdbcType=VARCHAR} as varchar), '%')</if>
<if test="company != null and company.education != null and company.education != ''"> and b.education = #{company.education}</if>
<if test="company != null and company.experience != null and company.experience != ''"> and b.experience = #{company.experience}</if>
<if test="company != null and company.companyName != null and company.companyName != ''"> and b.company_name like concat('%', cast(#{company.companyName, jdbcType=VARCHAR} as varchar), '%')</if>
<if test="company != null and company.companyId != null "> and b.company_id = #{company.companyId}</if>
<if test="company != null and company.code != null "> and l.code =#{company.code}</if>
<if test="name != null and name != '' "> and b.job_title like concat('%', cast(#{name, jdbcType=VARCHAR} as varchar), '%')</if>
</select>
</mapper>

View File

@@ -215,7 +215,7 @@
)
</select>
<select id="selectAllJob" resultType="com.ruoyi.cms.domain.Job">
SELECT j.*,c.industry,c.scale,c.nature as company_nature FROM job as j
SELECT j.*,c.industry,c.scale,c.nature as company_nature,c.code FROM job as j
left join company as c on c.company_id = j.company_id limit #{offset},#{batchSize}
</select>
<select id="selectAllInsertRowWork" resultType="com.ruoyi.cms.domain.RowWork">