添加岗位申请导出-完成

This commit is contained in:
sh
2025-10-16 13:14:35 +08:00
parent 2502d9726b
commit 7994112283
6 changed files with 53 additions and 14 deletions

View File

@@ -59,12 +59,46 @@
select user_id, name, age, sex, birth_date, education, political_affiliation, phone, avatar, salary_min, salary_max, area, status, del_flag, login_ip, login_date, create_by, create_time, update_by, update_time, remark,job_title_id,is_recommend,id_card,hire from app_user
</sql>
<select id="selectAppUserList" parameterType="java.lang.Long" resultType="com.ruoyi.common.core.domain.entity.AppUser">
select b.job_title,l.name company_name,e.* from job_apply a
<select id="selectAppUserList" parameterType="com.ruoyi.cms.domain.Job" 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' and a.hire='0'
<if test="jobTitle != null and jobTitle != ''"> and b.job_title like concat('%', cast(#{jobTitle, jdbcType=VARCHAR} as varchar), '%')</if>
<if test="education != null and education != ''"> and b.education = #{education}</if>
<if test="experience != null and experience != ''"> and b.experience = #{experience}</if>
<if test="companyName != null and companyName != ''"> and b.company_name like concat('%', cast(#{companyName, jdbcType=VARCHAR} as varchar), '%')</if>
<if test="jobLocation != null and jobLocation != ''"> and b.job_location = #{jobLocation}</if>
<if test="postingDate != null and postingDate!=''"> and b.posting_date = #{postingDate}</if>
<if test="vacancies != null "> and b.vacancies = #{vacancies}</if>
<if test="latitude != null "> and b.latitude = #{latitude}</if>
<if test="longitude != null "> and b.longitude = #{longitude}</if>
<if test="view != null "> and b."view" = #{view}</if>
<if test="companyId != null "> and b.company_id = #{companyId}</if>
<if test="isHot != null "> and b.is_hot = #{isHot}</if>
<if test="applyNum != null "> and b.apply_num = #{applyNum}</if>
<if test="code != null "> and b.company_id in(select company_id from company where code=#{code})</if>
<if test="compensation!=null ">
<if test="compensation==0 ">
and b.min_salary &lt; 1750
</if>
<if test="compensation==1 ">
and b.max_salary &lt; 2000 and b.min_salary &gt;= 1750
</if>
<if test="compensation==2 ">
and b.max_salary &lt; 3000 and b.min_salary &gt;= 2000
</if>
<if test="compensation==3 ">
and b.max_salary &lt; 4000 and b.min_salary &gt;= 3000
</if>
<if test="compensation==4 ">
and b.max_salary &lt; 5000 and b.min_salary &gt;= 4000
</if>
<if test="compensation==5 ">
and b.min_salary &gt; 5000
</if>
</if>
</select>
</mapper>