添加查询企业基本信息接口,避免查询其他信息
This commit is contained in:
@@ -41,4 +41,6 @@ public interface CompanyMapper extends BaseMapper<Company>
|
|||||||
|
|
||||||
/** 查询企业未参加的已结束户外招聘会。 */
|
/** 查询企业未参加的已结束户外招聘会。 */
|
||||||
List<CompanyMissedOutdoorFairVO> selectMissedOutdoorFairList(@Param("companyId") Long companyId);
|
List<CompanyMissedOutdoorFairVO> selectMissedOutdoorFairList(@Param("companyId") Long companyId);
|
||||||
|
|
||||||
|
public List<Company> selectCompanyCleanList(CompanySearch company);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -333,4 +333,66 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
ORDER BY f.end_time DESC, f.id DESC
|
ORDER BY f.end_time DESC, f.id DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="selectCompanyCleanList" parameterType="CompanySearch" resultMap="baseCompanyResult">
|
||||||
|
<include refid="selectBaseCompanyVo" />
|
||||||
|
<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="location != null and location != ''"> and cp.location = #{location}</if>
|
||||||
|
<include refid="companyIndustryFilter"/>
|
||||||
|
<if test="scale != null and scale != ''"> and cp.scale = #{scale}</if>
|
||||||
|
<if test="nature != null and nature != ''"> and cp.nature = #{nature}</if>
|
||||||
|
<if test="companyNature != null and companyNature != ''"> and cp.company_nature = #{companyNature}</if>
|
||||||
|
<if test="code != null and code != ''"> and cp.code = #{code}</if>
|
||||||
|
<if test="status != null and status != ''"> and cp.status = #{status}</if>
|
||||||
|
<if test="companyId != null and companyId != ''"> and cp.company_id = #{companyId}</if>
|
||||||
|
<if test="userId != null"> and cp.user_id = #{userId}</if>
|
||||||
|
<if test="isHrs != null and isHrs != ''"> and cp.is_hrs = #{isHrs}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<sql id="selectBaseCompanyVo">
|
||||||
|
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 from company cp
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<resultMap type="Company" id="baseCompanyResult">
|
||||||
|
<result property="companyId" column="company_id" />
|
||||||
|
<result property="name" column="name" />
|
||||||
|
<result property="location" column="location" />
|
||||||
|
<result property="industry" column="industry" />
|
||||||
|
<result property="scale" column="scale" />
|
||||||
|
<result property="code" column="code" />
|
||||||
|
<result property="delFlag" column="del_flag" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
<result property="description" column="description" />
|
||||||
|
<result property="nature" column="nature" />
|
||||||
|
<result property="companyNature" column="company_nature" />
|
||||||
|
<result property="totalRecruitment" column="total_recruitment" />
|
||||||
|
<result property="userId" column="user_id" />
|
||||||
|
<result property="businessLicenseUrl" column="business_license_url" />
|
||||||
|
<result property="idCardPictureUrl" column="id_card_picture_url" />
|
||||||
|
<result property="idCardPictureBackUrl" column="id_card_picture_back_url" />
|
||||||
|
<result property="powerOfAttorneyUrl" column="power_of_attorneyUrl" />
|
||||||
|
<result property="contactPerson" column="contact_person" />
|
||||||
|
<result property="contactPersonPhone" column="contact_person_phone" />
|
||||||
|
<result property="status" column="status" />
|
||||||
|
<result property="notPassReason" column="not_pass_reason" />
|
||||||
|
<result property="registeredAddress" column="registered_address" />
|
||||||
|
<result property="isAbnormal" column="is_abnormal" />
|
||||||
|
<result property="enterpriseType" column="enterprise_type" />
|
||||||
|
<result property="isImpCompany" column="is_imp_company" />
|
||||||
|
<result property="impCompanyType" column="imp_company_type" />
|
||||||
|
<result property="legalPerson" column="legal_person" />
|
||||||
|
<result property="legalIdCard" column="legal_id_card" />
|
||||||
|
<result property="legalPhone" column="legal_phone" />
|
||||||
|
<result property="companyStatus" column="company_status" />
|
||||||
|
<result property="isHrs" column="is_hrs" />
|
||||||
|
<result property="lcUserid" column="lc_userid" />
|
||||||
|
<result property="missedOutdoorFairCount" column="missed_outdoor_fair_count" />
|
||||||
|
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user