添加企业收藏求职者
This commit is contained in:
@@ -180,7 +180,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
then t.update_time else null end reject_time,t.is_imp_company,t.imp_company_type,t.enterprise_type,t.legal_person,t.legal_id_card,t.legal_phone,t.is_hrs,
|
||||
su.lc_userid from company t
|
||||
left join sys_user su on t.code=su.id_card
|
||||
<where> t.del_flag = '0'
|
||||
<where> t.del_flag = '0' and su.lc_userid is not null
|
||||
<if test="name != null and name != ''"> and t.name like concat('%', cast(#{name, jdbcType=VARCHAR} as varchar), '%')</if>
|
||||
<if test="scale != null and scale != ''"> and t.scale = #{scale}</if>
|
||||
<if test="nature != null and nature != ''"> and t.nature = #{nature}</if>
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
<?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.msg.HrCompanyTalentCollectMapper">
|
||||
|
||||
<resultMap type="HrCompanyTalentCollect" id="HrCompanyTalentCollectResult">
|
||||
<id column="id" property="id"/>
|
||||
<result column="company_id" property="companyId"/>
|
||||
<result column="user_id" property="userId"/>
|
||||
<result column="intention_level" property="intentionLevel"/>
|
||||
<result column="intend_job_ids" property="intendJobIds"/>
|
||||
<result column="collect_tags" property="collectTags"/>
|
||||
<result column="remark" property="remark"/>
|
||||
<result column="source_type" property="sourceType"/>
|
||||
<result column="del_flag" property="delFlag"/>
|
||||
<result column="create_by" property="createBy"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_by" property="updateBy"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="HrCompanyTalentCollectDto" id="AppUserResultDto">
|
||||
<id column="id" property="id"/>
|
||||
<result column="company_id" property="companyId"/>
|
||||
<result column="user_id" property="userId" />
|
||||
<result column="intention_level" property="intentionLevel"/>
|
||||
<result column="intend_job_ids" property="intendJobIds"/>
|
||||
<result column="collect_tags" property="collectTags"/>
|
||||
<result column="remark" property="remark"/>
|
||||
<result column="source_type" property="sourceType"/>
|
||||
<result column="del_flag" property="delFlag"/>
|
||||
<result column="create_by" property="createBy"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_by" property="updateBy"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
<!--个人信息-->
|
||||
<result property="name" column="name" />
|
||||
<result property="age" column="age" />
|
||||
<result property="sex" column="sex" />
|
||||
<result property="birthDate" column="birth_date" />
|
||||
<result property="education" column="education" />
|
||||
<result property="politicalAffiliation" column="political_affiliation" />
|
||||
<result property="phone" column="phone" />
|
||||
<result property="avatar" column="avatar" />
|
||||
<result property="salaryMin" column="salary_min" />
|
||||
<result property="salaryMax" column="salary_max" />
|
||||
<result property="area" column="area" />
|
||||
<result property="status" column="status" />
|
||||
<result property="loginIp" column="login_ip" />
|
||||
<result property="loginDate" column="login_date" />
|
||||
<result property="jobTitleId" column="job_title_id" />
|
||||
<result property="isRecommend" column="is_recommend" />
|
||||
<result property="idCard" column="id_card" />
|
||||
<result property="workExperience" column="work_experience" />
|
||||
<result property="isCompanyUser" column="is_company_user" />
|
||||
<result property="lcUserid" column="lc_userid" />
|
||||
<result property="email" column="email" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHrCompanyTalentCollectVo">
|
||||
select id, company_id, user_id, intention_level, intend_job_ids, collect_tags, remark,
|
||||
source_type, del_flag, create_by, create_time, update_by, update_time
|
||||
from hr_company_talent_collect
|
||||
</sql>
|
||||
|
||||
<sql id="selectHrCompanyTalentCollectVoDto">
|
||||
select htc.id, htc.company_id, htc.user_id, htc.intention_level, htc.intend_job_ids, htc.collect_tags, htc.remark,
|
||||
htc.source_type, htc.del_flag, htc.create_by, htc.create_time, htc.update_by, htc.update_time,
|
||||
au.name, au.age, au.sex, au.birth_date, au.education, au.political_affiliation, au.phone, au.avatar, au.salary_min,
|
||||
au.salary_max, au.area, au.status, au.login_ip, au.login_date,au.job_title_id,au.is_recommend,au.id_card,au.work_experience,
|
||||
au.is_company_user,au.lc_userid,au.email
|
||||
from hr_company_talent_collect htc
|
||||
left join app_user au on htc.user_id=au.user_id
|
||||
</sql>
|
||||
|
||||
<select id="selectHrCompanyTalentCollectList" resultMap="AppUserResultDto" parameterType="HrCompanyTalentCollectDto">
|
||||
<include refid="selectHrCompanyTalentCollectVoDto"/>
|
||||
<where>
|
||||
htc.del_flag = '0'
|
||||
<if test="companyId != null">
|
||||
and htc.company_id = #{companyId}
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
and htc.user_id = #{userId}
|
||||
</if>
|
||||
<if test="intentionLevel != null">
|
||||
and htc.intention_level = #{intentionLevel}
|
||||
</if>
|
||||
<if test="sourceType != null">
|
||||
and htc.source_type = #{sourceType}
|
||||
</if>
|
||||
<if test="collectTags != null and collectTags != ''">
|
||||
and htc.collect_tags like concat('%',#{collectTags},'%')
|
||||
</if>
|
||||
</where>
|
||||
order by htc.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectExistCollect" resultMap="HrCompanyTalentCollectResult">
|
||||
<include refid="selectHrCompanyTalentCollectVo"/>
|
||||
where company_id = #{companyId} and user_id = #{userId} and del_flag = '0'
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user