修改—管理端企业账户管理:法定代表人查询无效、列表的联系人、联系电话、企业规模字段未在列表展示,查询也无效

This commit is contained in:
chenshaohua
2026-07-22 11:36:58 +08:00
parent 9a9843d27f
commit eab743412e

View File

@@ -42,6 +42,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="isHrs" column="is_hrs" /> <result property="isHrs" column="is_hrs" />
<result property="lcUserid" column="lc_userid" /> <result property="lcUserid" column="lc_userid" />
<collection property="companyContactList" ofType="com.ruoyi.common.core.domain.entity.CompanyContact"
resultMap="CompanyContactResult"/>
</resultMap>
<resultMap type="com.ruoyi.common.core.domain.entity.CompanyContact" id="CompanyContactResult">
<result property="contactPerson" column="con_contact_person"/>
<result property="contactPersonPhone" column="con_contact_person_phone"/>
<result property="companyId" column="con_company_id" />
</resultMap> </resultMap>
<sql id="selectCompanyVo"> <sql id="selectCompanyVo">
@@ -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, 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' 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, 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 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 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 <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="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="scale != null and scale != ''"> and t.scale = #{scale}</if>
@@ -193,6 +202,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="status != null and status != ''"> and t.status = #{status}</if> <if test="status != null and status != ''"> and t.status = #{status}</if>
<if test="companyId != null and companyId != ''"> and t.company_id = #{companyId}</if> <if test="companyId != null and companyId != ''"> and t.company_id = #{companyId}</if>
<if test="isHrs != null and isHrs != ''"> and t.is_hrs = #{isHrs}</if> <if test="isHrs != null and isHrs != ''"> and t.is_hrs = #{isHrs}</if>
<if test="legalPerson != null and legalPerson != ''"> and t.legal_person like concat('%', cast(#{legalPerson, jdbcType=VARCHAR} as varchar), '%')</if>
<if test="contactPerson != null and contactPerson != ''">
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), '%')
)
</if>
<if test="contactPersonPhone != null and contactPersonPhone != ''">
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), '%')
)
</if>
<if test="startDate != null and startDate != ''"> <if test="startDate != null and startDate != ''">
and t.create_time >= #{startDate} and t.create_time >= #{startDate}
</if> </if>