From 9b6b38d6b6c9963e28f77c6887acf8462dcb5243 Mon Sep 17 00:00:00 2001 From: lapuda <577732344@qq.com> Date: Fri, 24 Jul 2026 12:51:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A5=E5=9B=9E=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E6=9C=AA=E5=8F=82=E4=BC=9A=E7=BB=9F=E8=AE=A1=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/app/CompanyMapper.xml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ruoyi-bussiness/src/main/resources/mapper/app/CompanyMapper.xml b/ruoyi-bussiness/src/main/resources/mapper/app/CompanyMapper.xml index 0f9bcb5..d66b3c1 100644 --- a/ruoyi-bussiness/src/main/resources/mapper/app/CompanyMapper.xml +++ b/ruoyi-bussiness/src/main/resources/mapper/app/CompanyMapper.xml @@ -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, 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.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 left join company_contact cct on cp.company_id=cct.company_id and cct.del_flag='0' cp.del_flag = '0'