123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349 |
- <?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.system.mapper.resume.ResumeMapper">
-
- <resultMap type="Resume" id="ResumeResult">
- <result property="resumeId" column="resume_id" />
- <result property="resumeName" column="resume_name" />
- <result property="userName" column="user_name" />
- <result property="gender" column="gender" />
- <result property="birthday" column="birthday" />
- <result property="age" column="age" />
- <result property="degree" column="degree" />
- <result property="experience" column="experience" />
- <result property="mobile" column="mobile" />
- <result property="cardNo" column="card_no" />
- <result property="email" column="email" />
- <result property="isMarryed" column="is_marryed" />
- <result property="residence" column="residence" />
- <result property="origin" column="origin" />
- <result property="nationality" column="nationality" />
- <result property="graduateCollege" column="graduate_college" />
- <result property="major" column="major" />
- <result property="lanuage" column="lanuage" />
- <result property="graduateDate" column="graduate_date" />
- <result property="positionRating" column="position_rating" />
- <result property="keyWords" column="key_words" />
- <result property="jobObjective" column="job_objective" />
- <result property="salary" column="salary" />
- <result property="selfIntroduce" column="self_introduce" />
- <result property="userId" column="user_id" />
- <result property="headUrl" column="head_url" />
- <result property="isPrivate" column="is_private" />
- <result property="isDeleted" column="is_deleted" />
- <result property="createDate" column="create_date" />
- <result property="updateUserId" column="update_user_id" />
- <result property="updateDate" column="update_date" />
- <result property="resumeDownloadUrl" column="resume_download_url" />
- <result property="status" column="status" />
- <result property="currentCompany" column="current_company" />
- <result property="industry" column="industry" />
- <result property="workingPlace" column="working_place" />
- <result property="certificate" column="certificate" />
- <result property="languageAbility" column="language_ability" />
- <result property="industryExperience" column="industry_experience" />
- <result property="workExperience" column="work_experience" />
- <result property="post" column="post" />
- <result property="lastCompany" column="last_company" />
- <result property="lastIndustry" column="last_industry" />
- <result property="lastPosition" column="last_position" />
- <result property="position" column="position" />
- <result property="selfEvaluation" column="self_evaluation" />
- <result property="exceptedSalary" column="excepted_salary" />
- <result property="isEnabled" column="is_enabled" />
- <result property="corpId" column="corp_id" />
- </resultMap>
- <sql id="selectResumeVo">
- SELECT
- r.resume_id,
- r.resume_name,
- r.user_name,
- r.gender,
- r.birthday,
- r.age,
- r.degree,
- r.experience,
- r.mobile,
- r.card_no,
- r.email,
- r.is_marryed,
- r.residence,
- r.origin,
- r.nationality,
- r.graduate_college,
- r.major,
- r.lanuage,
- r.graduate_date,
- r.position_rating,
- r.key_words,
- r.job_objective,
- r.salary,
- r.self_introduce,
- r.user_id,
- r.head_url,
- r.is_private,
- r.is_deleted,
- r.create_date,
- r.update_user_id,
- r.update_date,
- r.resume_download_url,
- r.STATUS,
- r.current_company,
- r.industry,
- r.working_place,
- r.certificate,
- r.language_ability,
- r.industry_experience,
- r.work_experience,
- r.post,
- r.last_company,
- r.last_industry,
- r.last_position,
- r.position,
- r.self_evaluation,
- r.excepted_salary,
- r.is_enabled,
- r.corp_id,
- su.user_name AS createUserName
- FROM
- resume r
- LEFT JOIN sys_user su ON su.user_id = r.user_id
- </sql>
- <select id="selectResumeList" parameterType="Resume" resultMap="ResumeResult">
- <include refid="selectResumeVo"/>
- <where>
- <if test="resumeName != null and resumeName != ''"> and r.resume_name like concat('%', #{resumeName}, '%')</if>
- <if test="userName != null and userName != ''"> and r.user_name like concat('%', #{userName}, '%')</if>
- <if test="gender != null and gender != ''"> and r.gender = #{gender}</if>
- <if test="birthday != null "> and r.birthday = #{birthday}</if>
- <if test="age != null and age != ''"> and r.age = #{age}</if>
- <if test="degree != null and degree != ''"> and r.degree = #{degree}</if>
- <if test="experience != null and experience != ''"> and r.experience = #{experience}</if>
- <if test="mobile != null and mobile != ''"> and r.mobile = #{mobile}</if>
- <if test="cardNo != null and cardNo != ''"> and r.card_no = #{cardNo}</if>
- <if test="email != null and email != ''"> and r.email = #{email}</if>
- <if test="isMarryed != null "> and r.is_marryed = #{isMarryed}</if>
- <if test="residence != null and residence != ''"> and r.residence = #{residence}</if>
- <if test="origin != null and origin != ''"> and r.origin = #{origin}</if>
- <if test="nationality != null and nationality != ''"> and r.nationality = #{nationality}</if>
- <if test="graduateCollege != null and graduateCollege != ''"> and r.graduate_college = #{graduateCollege}</if>
- <if test="major != null and major != ''"> and r.major = #{major}</if>
- <if test="lanuage != null and lanuage != ''"> and r.lanuage = #{lanuage}</if>
- <if test="graduateDate != null "> and r.graduate_date = #{graduateDate}</if>
- <if test="positionRating != null and positionRating != ''"> and r.position_rating = #{positionRating}</if>
- <if test="keyWords != null and keyWords != ''"> and r.key_words = #{keyWords}</if>
- <if test="jobObjective != null and jobObjective != ''"> and r.job_objective = #{jobObjective}</if>
- <if test="salary != null and salary != ''"> and r.salary = #{salary}</if>
- <if test="selfIntroduce != null and selfIntroduce != ''"> and r.self_introduce = #{selfIntroduce}</if>
- <if test="userId != null and userId != ''"> and r.user_id = #{userId}</if>
- <if test="createUserName != null and createUserName != ''"> and su.user_name = #{createUserName}</if>
- <if test="headUrl != null and headUrl != ''"> and r.head_url = #{headUrl}</if>
- <if test="isPrivate != null "> and r.is_private = #{isPrivate}</if>
- <if test="isDeleted != null "> and r.is_deleted = #{isDeleted}</if>
- <if test="createDate != null "> and r.create_date = #{createDate}</if>
- <if test="startTime != null and startTime != ''"> and r.create_date >= #{startTime}</if>
- <if test="endTime != null and endTime != ''"> and #{endTime} >= r.create_date </if>
- <if test="updateUserId != null and updateUserId != ''"> and r.update_user_id = #{updateUserId}</if>
- <if test="updateDate != null "> and r.update_date = #{updateDate}</if>
- <if test="resumeDownloadUrl != null and resumeDownloadUrl != ''"> and r.resume_download_url = #{resumeDownloadUrl}</if>
- <if test="status != null and status != ''"> and r.status = #{status}</if>
- <if test="currentCompany != null and currentCompany != ''"> and r.current_company = #{currentCompany}</if>
- <if test="industry != null and industry != ''"> and r.industry = #{industry}</if>
- <if test="workingPlace != null and workingPlace != ''"> and r.working_place = #{workingPlace}</if>
- <if test="certificate != null and certificate != ''"> and r.certificate = #{certificate}</if>
- <if test="languageAbility != null and languageAbility != ''"> and r.language_ability = #{languageAbility}</if>
- <if test="industryExperience != null and industryExperience != ''"> and r.industry_experience = #{industryExperience}</if>
- <if test="workExperience != null and workExperience != ''"> and r.work_experience = #{workExperience}</if>
- <if test="post != null and post != ''"> and r.post = #{post}</if>
- <if test="lastCompany != null and lastCompany != ''"> and r.last_company = #{lastCompany}</if>
- <if test="lastIndustry != null and lastIndustry != ''"> and r.last_industry = #{lastIndustry}</if>
- <if test="lastPosition != null and lastPosition != ''"> and r.last_position = #{lastPosition}</if>
- <if test="position != null and position != ''"> and r.position = #{position}</if>
- <if test="selfEvaluation != null and selfEvaluation != ''"> and r.self_evaluation = #{selfEvaluation}</if>
- <if test="exceptedSalary != null and exceptedSalary != ''"> and r.excepted_salary = #{exceptedSalary}</if>
- <if test="isEnabled != null "> and r.is_enabled = #{isEnabled}</if>
- <if test="corpId != null and corpId != '' "> and r.corp_id = #{corpId}</if>
- </where>
- order by r.create_date desc
- </select>
- <select id="selectResumeByResumeId" parameterType="Long" resultMap="ResumeResult">
- <include refid="selectResumeVo"/>
- where r.resume_id = #{resumeId}
- and r.corp_id = #{corpId}
- </select>
-
- <insert id="insertResume" parameterType="Resume" useGeneratedKeys="true" keyProperty="resumeId">
- insert into resume
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="resumeName != null">resume_name,</if>
- <if test="userName != null">user_name,</if>
- <if test="gender != null">gender,</if>
- <if test="birthday != null">birthday,</if>
- <if test="age != null">age,</if>
- <if test="degree != null">degree,</if>
- <if test="experience != null">experience,</if>
- <if test="mobile != null">mobile,</if>
- <if test="cardNo != null">card_no,</if>
- <if test="email != null">email,</if>
- <if test="isMarryed != null">is_marryed,</if>
- <if test="residence != null">residence,</if>
- <if test="origin != null">origin,</if>
- <if test="nationality != null">nationality,</if>
- <if test="graduateCollege != null">graduate_college,</if>
- <if test="major != null">major,</if>
- <if test="lanuage != null">lanuage,</if>
- <if test="graduateDate != null">graduate_date,</if>
- <if test="positionRating != null">position_rating,</if>
- <if test="keyWords != null">key_words,</if>
- <if test="jobObjective != null">job_objective,</if>
- <if test="salary != null">salary,</if>
- <if test="selfIntroduce != null">self_introduce,</if>
- <if test="userId != null">user_id,</if>
- <if test="headUrl != null">head_url,</if>
- <if test="isPrivate != null">is_private,</if>
- <if test="isDeleted != null">is_deleted,</if>
- <if test="createDate != null">create_date,</if>
- <if test="updateUserId != null">update_user_id,</if>
- <if test="updateDate != null">update_date,</if>
- <if test="resumeDownloadUrl != null">resume_download_url,</if>
- <if test="status != null">status,</if>
- <if test="currentCompany != null">current_company,</if>
- <if test="industry != null">industry,</if>
- <if test="workingPlace != null">working_place,</if>
- <if test="certificate != null">certificate,</if>
- <if test="languageAbility != null">language_ability,</if>
- <if test="industryExperience != null">industry_experience,</if>
- <if test="workExperience != null">work_experience,</if>
- <if test="post != null">post,</if>
- <if test="lastCompany != null">last_company,</if>
- <if test="lastIndustry != null">last_industry,</if>
- <if test="lastPosition != null">last_position,</if>
- <if test="position != null">position,</if>
- <if test="selfEvaluation != null">self_evaluation,</if>
- <if test="exceptedSalary != null">excepted_salary,</if>
- <if test="isEnabled != null">is_enabled,</if>
- <if test="corpId != null">corp_id,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="resumeName != null">#{resumeName},</if>
- <if test="userName != null">#{userName},</if>
- <if test="gender != null">#{gender},</if>
- <if test="birthday != null">#{birthday},</if>
- <if test="age != null">#{age},</if>
- <if test="degree != null">#{degree},</if>
- <if test="experience != null">#{experience},</if>
- <if test="mobile != null">#{mobile},</if>
- <if test="cardNo != null">#{cardNo},</if>
- <if test="email != null">#{email},</if>
- <if test="isMarryed != null">#{isMarryed},</if>
- <if test="residence != null">#{residence},</if>
- <if test="origin != null">#{origin},</if>
- <if test="nationality != null">#{nationality},</if>
- <if test="graduateCollege != null">#{graduateCollege},</if>
- <if test="major != null">#{major},</if>
- <if test="lanuage != null">#{lanuage},</if>
- <if test="graduateDate != null">#{graduateDate},</if>
- <if test="positionRating != null">#{positionRating},</if>
- <if test="keyWords != null">#{keyWords},</if>
- <if test="jobObjective != null">#{jobObjective},</if>
- <if test="salary != null">#{salary},</if>
- <if test="selfIntroduce != null">#{selfIntroduce},</if>
- <if test="userId != null">#{userId},</if>
- <if test="headUrl != null">#{headUrl},</if>
- <if test="isPrivate != null">#{isPrivate},</if>
- <if test="isDeleted != null">#{isDeleted},</if>
- <if test="createDate != null">#{createDate},</if>
- <if test="updateUserId != null">#{updateUserId},</if>
- <if test="updateDate != null">#{updateDate},</if>
- <if test="resumeDownloadUrl != null">#{resumeDownloadUrl},</if>
- <if test="status != null">#{status},</if>
- <if test="currentCompany != null">#{currentCompany},</if>
- <if test="industry != null">#{industry},</if>
- <if test="workingPlace != null">#{workingPlace},</if>
- <if test="certificate != null">#{certificate},</if>
- <if test="languageAbility != null">#{languageAbility},</if>
- <if test="industryExperience != null">#{industryExperience},</if>
- <if test="workExperience != null">#{workExperience},</if>
- <if test="post != null">#{post},</if>
- <if test="lastCompany != null">#{lastCompany},</if>
- <if test="lastIndustry != null">#{lastIndustry},</if>
- <if test="lastPosition != null">#{lastPosition},</if>
- <if test="position != null">#{position},</if>
- <if test="selfEvaluation != null">#{selfEvaluation},</if>
- <if test="exceptedSalary != null">#{exceptedSalary},</if>
- <if test="isEnabled != null">#{isEnabled},</if>
- <if test="corpId != null">#{corpId},</if>
- </trim>
- </insert>
- <update id="updateResume" parameterType="Resume">
- update resume
- <trim prefix="SET" suffixOverrides=",">
- <if test="resumeName != null">resume_name = #{resumeName},</if>
- <if test="userName != null">user_name = #{userName},</if>
- <if test="gender != null">gender = #{gender},</if>
- <if test="birthday != null">birthday = #{birthday},</if>
- <if test="age != null">age = #{age},</if>
- <if test="degree != null">degree = #{degree},</if>
- <if test="experience != null">experience = #{experience},</if>
- <if test="mobile != null">mobile = #{mobile},</if>
- <if test="cardNo != null">card_no = #{cardNo},</if>
- <if test="email != null">email = #{email},</if>
- <if test="isMarryed != null">is_marryed = #{isMarryed},</if>
- <if test="residence != null">residence = #{residence},</if>
- <if test="origin != null">origin = #{origin},</if>
- <if test="nationality != null">nationality = #{nationality},</if>
- <if test="graduateCollege != null">graduate_college = #{graduateCollege},</if>
- <if test="major != null">major = #{major},</if>
- <if test="lanuage != null">lanuage = #{lanuage},</if>
- <if test="graduateDate != null">graduate_date = #{graduateDate},</if>
- <if test="positionRating != null">position_rating = #{positionRating},</if>
- <if test="keyWords != null">key_words = #{keyWords},</if>
- <if test="jobObjective != null">job_objective = #{jobObjective},</if>
- <if test="salary != null">salary = #{salary},</if>
- <if test="selfIntroduce != null">self_introduce = #{selfIntroduce},</if>
- <if test="userId != null">user_id = #{userId},</if>
- <if test="headUrl != null">head_url = #{headUrl},</if>
- <if test="isPrivate != null">is_private = #{isPrivate},</if>
- <if test="isDeleted != null">is_deleted = #{isDeleted},</if>
- <if test="createDate != null">create_date = #{createDate},</if>
- <if test="updateUserId != null">update_user_id = #{updateUserId},</if>
- <if test="updateDate != null">update_date = #{updateDate},</if>
- <if test="resumeDownloadUrl != null">resume_download_url = #{resumeDownloadUrl},</if>
- <if test="status != null">status = #{status},</if>
- <if test="currentCompany != null">current_company = #{currentCompany},</if>
- <if test="industry != null">industry = #{industry},</if>
- <if test="workingPlace != null">working_place = #{workingPlace},</if>
- <if test="certificate != null">certificate = #{certificate},</if>
- <if test="languageAbility != null">language_ability = #{languageAbility},</if>
- <if test="industryExperience != null">industry_experience = #{industryExperience},</if>
- <if test="workExperience != null">work_experience = #{workExperience},</if>
- <if test="post != null">post = #{post},</if>
- <if test="lastCompany != null">last_company = #{lastCompany},</if>
- <if test="lastIndustry != null">last_industry = #{lastIndustry},</if>
- <if test="lastPosition != null">last_position = #{lastPosition},</if>
- <if test="position != null">position = #{position},</if>
- <if test="selfEvaluation != null">self_evaluation = #{selfEvaluation},</if>
- <if test="exceptedSalary != null">excepted_salary = #{exceptedSalary},</if>
- <if test="isEnabled != null">is_enabled = #{isEnabled},</if>
- <if test="corpId != null">corp_id = #{corpId},</if>
- </trim>
- where resume_id = #{resumeId}
- </update>
- <delete id="deleteResumeByResumeId" parameterType="Long">
- delete from resume where resume_id = #{resumeId}
- </delete>
- <delete id="deleteResumeByResumeIds" parameterType="String">
- delete from resume where resume_id in
- <foreach item="resumeId" collection="array" open="(" separator="," close=")">
- #{resumeId}
- </foreach>
- </delete>
- </mapper>
|