11
This commit is contained in:
@@ -44,16 +44,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<result property="missedOutdoorFairCount" column="missed_outdoor_fair_count" />
|
<result property="missedOutdoorFairCount" column="missed_outdoor_fair_count" />
|
||||||
|
|
||||||
<collection property="companyContactList" ofType="com.ruoyi.common.core.domain.entity.CompanyContact"
|
<collection property="companyContactList" ofType="com.ruoyi.common.core.domain.entity.CompanyContact"
|
||||||
resultMap="CompanyContactResult"/>
|
select="selectCompanyContactsById"
|
||||||
|
column="company_id"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<resultMap type="com.ruoyi.common.core.domain.entity.CompanyContact" id="CompanyContactResult">
|
<resultMap type="com.ruoyi.common.core.domain.entity.CompanyContact" id="CompanyContactResult">
|
||||||
<result property="contactPerson" column="con_contact_person"/>
|
<result property="id" column="id" />
|
||||||
<result property="contactPersonPhone" column="con_contact_person_phone"/>
|
<result property="companyId" column="company_id" />
|
||||||
<result property="companyId" column="con_company_id" />
|
<result property="contactPerson" column="contact_person"/>
|
||||||
<result property="id" column="con_company_contact_id" />
|
<result property="contactPersonPhone" column="contact_person_phone"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
<select id="selectCompanyContactsById" resultMap="CompanyContactResult">
|
||||||
|
select id, company_id, contact_person, contact_person_phone
|
||||||
|
from company_contact
|
||||||
|
where company_id = #{companyId}
|
||||||
|
and del_flag = '0'
|
||||||
|
</select>
|
||||||
|
|
||||||
<sql id="selectCompanyVo">
|
<sql id="selectCompanyVo">
|
||||||
select company_id, name, location, industry, scale, del_flag, create_by, create_time, update_by, update_time, remark,code,description,nature,company_nature,total_recruitment,registered_address,contact_person,contact_person_phone,is_abnormal,not_pass_reason,status,case when status='2' then update_time else null end reject_time,is_imp_company,imp_company_type,enterprise_type,legal_person,legal_id_card,legal_phone,is_hrs,
|
select company_id, name, location, industry, scale, del_flag, create_by, create_time, update_by, update_time, remark,code,description,nature,company_nature,total_recruitment,registered_address,contact_person,contact_person_phone,is_abnormal,not_pass_reason,status,case when status='2' then update_time else null end reject_time,is_imp_company,imp_company_type,enterprise_type,legal_person,legal_id_card,legal_phone,is_hrs,
|
||||||
(select count(1)
|
(select count(1)
|
||||||
@@ -155,10 +163,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
and fc.del_flag = '0'
|
and fc.del_flag = '0'
|
||||||
and fc.review_status = '1'
|
and fc.review_status = '1'
|
||||||
and f.end_time < CURRENT_TIMESTAMP
|
and f.end_time < CURRENT_TIMESTAMP
|
||||||
and coalesce(a.attendance_status, '0') <> '1') as missed_outdoor_fair_count,
|
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,
|
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'
|
|
||||||
<where> cp.del_flag = '0'
|
<where> cp.del_flag = '0'
|
||||||
<if test="name != null and name != ''"> and cp.name like concat('%', cast(#{name, jdbcType=VARCHAR} as varchar), '%')</if>
|
<if test="name != null and name != ''"> and cp.name like concat('%', cast(#{name, jdbcType=VARCHAR} as varchar), '%')</if>
|
||||||
<if test="location != null and location != ''"> and cp.location = #{location}</if>
|
<if test="location != null and location != ''"> and cp.location = #{location}</if>
|
||||||
@@ -250,9 +256,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
and fc.review_status = '1'
|
and fc.review_status = '1'
|
||||||
and f.end_time < CURRENT_TIMESTAMP
|
and f.end_time < CURRENT_TIMESTAMP
|
||||||
and coalesce(a.attendance_status, '0') <> '1') as missed_outdoor_fair_count,
|
and coalesce(a.attendance_status, '0') <> '1') as missed_outdoor_fair_count,
|
||||||
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
|
su.lc_userid,su.user_id from company t
|
||||||
left join sys_user su on t.code=su.id_card and su.del_flag='0'
|
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>
|
||||||
|
|||||||
Reference in New Issue
Block a user