diff --git a/ruoyi-bussiness/src/main/resources/mapper/app/CompanyMapper.xml b/ruoyi-bussiness/src/main/resources/mapper/app/CompanyMapper.xml
index 0b70d9e..91c2f54 100644
--- a/ruoyi-bussiness/src/main/resources/mapper/app/CompanyMapper.xml
+++ b/ruoyi-bussiness/src/main/resources/mapper/app/CompanyMapper.xml
@@ -42,6 +42,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+
+
+
+
+
+
+
@@ -182,8 +190,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
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 from company t
- left join sys_user su on t.code=su.id_card
+ 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
+ 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'
t.del_flag = '0' and su.lc_userid is not null
and t.name like concat('%', cast(#{name, jdbcType=VARCHAR} as varchar), '%')
and t.scale = #{scale}
@@ -193,6 +202,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and t.status = #{status}
and t.company_id = #{companyId}
and t.is_hrs = #{isHrs}
+ and t.legal_person like concat('%', cast(#{legalPerson, jdbcType=VARCHAR} as varchar), '%')
+
+ AND EXISTS (
+ SELECT 1 FROM company_contact cc
+ WHERE cc.company_id = t.company_id
+ AND cc.del_flag = '0'
+ AND cc.contact_person LIKE concat('%', cast(#{contactPerson, jdbcType=VARCHAR} as varchar), '%')
+ )
+
+
+ AND EXISTS (
+ SELECT 1 FROM company_contact cc
+ WHERE cc.company_id = t.company_id
+ AND cc.del_flag = '0'
+ AND cc.contact_person_phone LIKE concat('%', cast(#{contactPersonPhone, jdbcType=VARCHAR} as varchar), '%')
+ )
+
and t.create_time >= #{startDate}