1.修改查询求职者条件

2.返回企业userId
This commit is contained in:
chenshaohua
2026-07-23 18:59:18 +08:00
parent e2c9d7e72d
commit a8213022cb
4 changed files with 33 additions and 2 deletions

View File

@@ -186,11 +186,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
update COMPANY set company_status=#{companyStatus},update_time=#{updateTime},update_by=#{updateBy} where company_id=#{companyId} and del_flag='0'
</update>
<update id="updateLcToLocalStatus" parameterType="Company">
UPDATE company cn
SET cn.status = #{status},cn.update_time = #{updateTime},cn.update_by = #{updateBy}
WHERE cn.code IN ( SELECT su.id_card FROM sys_user su WHERE su.user_id = #{userId})
AND cn.del_flag = '0'
</update>
<select id="selectAdminCompanyList" parameterType="CompanySearch" resultMap="CompanyResult">
select t.company_id, t.name, t.location, t.industry, t.scale, t.del_flag, t.create_by, t.create_time, t.update_by, t.update_time, t.remark,t.code,t.description,
t.nature,t.company_nature,t.total_recruitment,t.registered_address,t.contact_person,t.contact_person_phone,t.is_abnormal,t.not_pass_reason,t.status,case when t.status='2'
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,cct.contact_person as con_contact_person,cct.contact_person_phone as con_contact_person_phone,cct.company_id as con_company_id from company t
su.lc_userid,su.user_id,cct.contact_person as con_contact_person,cct.contact_person_phone as con_contact_person_phone,cct.company_id as con_company_id from company t
left join sys_user su on t.code=su.id_card and su.del_flag='0'
left join company_contact cct on t.company_id=cct.company_id and cct.del_flag='0'
<where> t.del_flag = '0' and su.lc_userid is not null