fix: 补回企业未参会统计字段
This commit is contained in:
@@ -145,7 +145,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
select cp.company_id, cp.name, cp.location, cp.industry, cp.scale, cp.del_flag, cp.create_by, cp.create_time, cp.update_by, cp.update_time, cp.remark,
|
select cp.company_id, cp.name, cp.location, cp.industry, cp.scale, cp.del_flag, cp.create_by, cp.create_time, cp.update_by, cp.update_time, cp.remark,
|
||||||
cp.code,cp.description,cp.nature,cp.company_nature,cp.total_recruitment,cp.registered_address,cp.contact_person,cp.contact_person_phone,cp.is_abnormal,
|
cp.code,cp.description,cp.nature,cp.company_nature,cp.total_recruitment,cp.registered_address,cp.contact_person,cp.contact_person_phone,cp.is_abnormal,
|
||||||
cp.not_pass_reason,cp.status,case when cp.status='2' then cp.update_time else null end reject_time,cp.is_imp_company,cp.imp_company_type,cp.enterprise_type,
|
cp.not_pass_reason,cp.status,case when cp.status='2' then cp.update_time else null end reject_time,cp.is_imp_company,cp.imp_company_type,cp.enterprise_type,
|
||||||
cp.legal_person,cp.legal_id_card,cp.legal_phone,cp.is_hrs,cct.contact_person as con_contact_person,cct.contact_person_phone as con_contact_person_phone,
|
cp.legal_person,cp.legal_id_card,cp.legal_phone,cp.is_hrs,
|
||||||
|
(select count(1)
|
||||||
|
from shz.fair_company fc
|
||||||
|
join shz.cms_outdoor_fair f on f.id = fc.job_fair_id and f.del_flag = '0'
|
||||||
|
left join shz.cms_outdoor_fair_company_attendance a
|
||||||
|
on a.fair_id = fc.job_fair_id and a.company_id = fc.company_id and a.del_flag = '0'
|
||||||
|
where fc.company_id = cp.company_id
|
||||||
|
and fc.del_flag = '0'
|
||||||
|
and fc.review_status = '1'
|
||||||
|
and f.end_time < CURRENT_TIMESTAMP
|
||||||
|
and coalesce(a.attendance_status, '0') <> '1') as missed_outdoor_fair_count,
|
||||||
|
cct.contact_person as con_contact_person,cct.contact_person_phone as con_contact_person_phone,
|
||||||
cct.company_id as con_company_id,cct.id as con_company_contact_id from company cp
|
cct.company_id as con_company_id,cct.id as con_company_contact_id from company cp
|
||||||
left join company_contact cct on cp.company_id=cct.company_id and cct.del_flag='0'
|
left join company_contact cct on cp.company_id=cct.company_id and cct.del_flag='0'
|
||||||
<where> cp.del_flag = '0'
|
<where> cp.del_flag = '0'
|
||||||
|
|||||||
Reference in New Issue
Block a user