1.职位发布与管理-添加表(job_contact)补充对应后端代码
2.企业联系人管理-添加表(company_contact)补充对应后台代码 3.岗位管理-添加信用代码、薪酬查询条件 4.用户管理-添加身份证显示(脱敏)、是否录用 5.岗位管理-添加字段岗位类型(疆内、疆外)
This commit is contained in:
@@ -28,10 +28,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="remark" column="remark" />
|
||||
<result property="jobTitleId" column="job_title_id" />
|
||||
<result property="isRecommend" column="is_recommend" />
|
||||
<result property="idCard" column="id_card" />
|
||||
<result property="hire" column="hire" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectAppUserVo">
|
||||
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 from app_user
|
||||
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="AppUser" resultMap="AppUserResult">
|
||||
@@ -52,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="loginIp != null and loginIp != ''"> and login_ip = #{loginIp}</if>
|
||||
<if test="loginDate != null "> and login_date = #{loginDate}</if>
|
||||
<if test="experience != null "> and experience = #{experience}</if>
|
||||
<if test="idCard != null and idCard != ''"> and id_card like concat('%', CAST(#{idCard} AS VARCHAR), '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="selectByJobId" resultType="com.ruoyi.cms.domain.AppUser" parameterType="java.lang.Long">
|
||||
|
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.ruoyi.cms.mapper.CompanyContactMapper">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="CompanyContact" id="CompanyContactResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="companyId" column="company_id"/>
|
||||
<result property="contactPerson" column="contact_person"/>
|
||||
<result property="contactPersonPhone" column="contact_person_phone"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="remark" column="remark"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCompanyContactVo">
|
||||
select id, company_id, contact_person, contact_person_phone, del_flag, create_by, create_time, update_by, update_time, remark from company_contact
|
||||
</sql>
|
||||
|
||||
<select id="getSelectList" resultMap="CompanyContactResult" parameterType="CompanyContact">
|
||||
<include refid="selectCompanyContactVo"/>
|
||||
<where> del_flag = '0'
|
||||
<if test="companyId!=null and companyId!='' ">
|
||||
and company_id=#{companyId}
|
||||
</if>
|
||||
<if test="contactPerson!=null and contactPerson!='' ">
|
||||
and contact_person=#{contactPerson}
|
||||
</if>
|
||||
<if test="contactPersonPhone!=null and contactPersonPhone!='' ">
|
||||
and contact_person_phone=#{contactPersonPhone}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.ruoyi.cms.mapper.JobContactMapper">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="JobContact" id="jobContactResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="jobId" column="job_id"/>
|
||||
<result property="contactPerson" column="contact_person"/>
|
||||
<result property="contactPersonPhone" column="contact_person_phone"/>
|
||||
<result property="position" column="position"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="remark" column="remark"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="JobContactVo">
|
||||
select id, job_id, contact_person, contact_person_phone, position, del_flag, create_by, create_time, update_by, update_time, remark from job_contact
|
||||
</sql>
|
||||
|
||||
|
||||
<select id="getSelectList" resultMap="jobContactResult" parameterType="JobContact">
|
||||
<include refid="JobContactVo"/>
|
||||
<where> del_flag = '0'
|
||||
<if test="jobId!=null and jobId!='' ">
|
||||
and job_id=#{jobId}
|
||||
</if>
|
||||
<if test="contactPerson!=null and contactPerson!='' ">
|
||||
and contact_person=#{contactPerson}
|
||||
</if>
|
||||
<if test="contactPersonPhone!=null and contactPersonPhone!='' ">
|
||||
and contact_person_phone=#{contactPersonPhone}
|
||||
</if>
|
||||
<if test="position!=null and position!='' ">
|
||||
and position=#{position}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
@@ -33,10 +33,11 @@
|
||||
<result property="isExplain" column="is_explain" />
|
||||
<result property="explainUrl" column="explain_url" />
|
||||
<result property="cover" column="cover" />
|
||||
<result property="jobType" column="job_type" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectJobVo">
|
||||
select job_id, job_title, min_salary, max_salary, education, experience, company_name, job_location, posting_date, vacancies, del_flag, create_by, create_time, update_by, update_time, remark, latitude, longitude, "view", company_id , is_hot ,apply_num,is_publish, description,job_location_area_code,data_source,job_url,job_category,is_explain,explain_url,cover from job
|
||||
select job_id, job_title, min_salary, max_salary, education, experience, company_name, job_location, posting_date, vacancies, del_flag, create_by, create_time, update_by, update_time, remark, latitude, longitude, "view", company_id , is_hot ,apply_num,is_publish, description,job_location_area_code,data_source,job_url,job_category,is_explain,explain_url,cover,job_type from job
|
||||
</sql>
|
||||
<insert id="insertBatchRowWork">
|
||||
INSERT INTO row_work (
|
||||
@@ -66,7 +67,7 @@
|
||||
job_title, min_salary, max_salary, education, experience, company_name, job_location,
|
||||
job_location_area_code, posting_date, vacancies, latitude, longitude, "view", company_id,
|
||||
is_hot, apply_num, description, is_publish, data_source, job_url, remark, del_flag,
|
||||
create_by, create_time, row_id, job_category
|
||||
create_by, create_time, row_id, job_category,jobType
|
||||
) VALUES
|
||||
<foreach collection="list" item="job" separator=",">
|
||||
(
|
||||
@@ -75,7 +76,7 @@
|
||||
#{job.vacancies}, #{job.latitude}, #{job.longitude}, #{job.view}, #{job.companyId},
|
||||
#{job.isHot}, #{job.applyNum}, #{job.description}, #{job.isPublish}, #{job.dataSource},
|
||||
#{job.jobUrl}, #{job.remark}, #{job.delFlag}, #{job.createBy}, #{job.createTime},
|
||||
#{job.rowId}, #{job.jobCategory}
|
||||
#{job.rowId}, #{job.jobCategory},#{job.jobType}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
@@ -134,6 +135,27 @@
|
||||
<if test="companyId != null "> and company_id = #{companyId}</if>
|
||||
<if test="isHot != null "> and is_hot = #{isHot}</if>
|
||||
<if test="applyNum != null "> and apply_num = #{applyNum}</if>
|
||||
<if test="code != null "> and company_id in(select company_id from company where code=#{code})</if>
|
||||
<if test="compensation!=null ">
|
||||
<if test="compensation==0 ">
|
||||
and min_salary < 1750
|
||||
</if>
|
||||
<if test="compensation==1 ">
|
||||
and max_salary < 2000 and min_salary >= 1750
|
||||
</if>
|
||||
<if test="compensation==2 ">
|
||||
and max_salary < 3000 and min_salary >= 2000
|
||||
</if>
|
||||
<if test="compensation==3 ">
|
||||
and max_salary < 4000 and min_salary >= 3000
|
||||
</if>
|
||||
<if test="compensation==4 ">
|
||||
and max_salary < 5000 and min_salary >= 4000
|
||||
</if>
|
||||
<if test="compensation==5 ">
|
||||
and min_salary > 5000
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
order by is_explain desc
|
||||
</select>
|
||||
|
Reference in New Issue
Block a user