|
@@ -10,8 +10,12 @@
|
|
|
<association property="job"
|
|
|
javaType="com.citu.module.menduner.system.controller.app.jobhunt.flame.AppFlameJobAdvertisedRespVO"
|
|
|
autoMapping="true">
|
|
|
- <result property="tagList" column="tag_list" typeHandler="com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler"/>
|
|
|
+ <result property="tagList" column="job_tag_list" typeHandler="com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler"/>
|
|
|
<result property="id" column="job_id"/>
|
|
|
+ <result property="name" column="job_title"/>
|
|
|
+ <result property="status" column="job_status"/>
|
|
|
+ <result property="type" column="work_experience_type"/>
|
|
|
+ <result property="address" column="job_address"/>
|
|
|
</association>
|
|
|
|
|
|
|
|
@@ -35,16 +39,59 @@
|
|
|
<association property="business"
|
|
|
javaType="com.citu.module.menduner.system.controller.base.enterprise.business.EnterpriseBusinessRespVO"
|
|
|
autoMapping="true">
|
|
|
+ <result property="name" column="enterprise_name" />
|
|
|
+
|
|
|
</association>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="search"
|
|
|
resultMap="AppFlameJobRespVOResultMap" >
|
|
|
select
|
|
|
- e.name as enterprise_name,
|
|
|
- e.id as eenterprise_id,
|
|
|
- d.job_id as job_id,
|
|
|
- a.*,x.*,e.*,b.*
|
|
|
+ e.name as enterprise_name,
|
|
|
+ e.id as eenterprise_id,
|
|
|
+ d.job_id as job_id,
|
|
|
+ a.user_id,
|
|
|
+ a.area_id,
|
|
|
+ a.name as job_title, <!-- 招聘职位标题 -->
|
|
|
+ a.position_id,
|
|
|
+ a.type as work_experience_type,
|
|
|
+ a.exp_type,
|
|
|
+ a.edu_type,
|
|
|
+ a.pay_from,
|
|
|
+ a.pay_to,
|
|
|
+ a.pay_unit,
|
|
|
+ a.tag_list as job_tag_list, <!-- 职位标签 -->
|
|
|
+ a.content,
|
|
|
+ a.requirement,
|
|
|
+ a.expire_time,
|
|
|
+ a.top,
|
|
|
+ a.address as job_address,
|
|
|
+ a.longitude,
|
|
|
+ a.latitude,
|
|
|
+ a.hire,
|
|
|
+ a.hire_price,
|
|
|
+ a.status as job_status, <!-- 职位状态 -->
|
|
|
+ x.major_id,
|
|
|
+ x.hot,
|
|
|
+ x.dept,
|
|
|
+ x.frequency,
|
|
|
+ e.*,
|
|
|
+ b.code,
|
|
|
+ b.type,
|
|
|
+ b.area,
|
|
|
+ b.address,
|
|
|
+ b.representative,
|
|
|
+ b.establishment_time,
|
|
|
+ b.registered_capital,
|
|
|
+ b.approval_time,
|
|
|
+ b.former_name,
|
|
|
+ b.industry,
|
|
|
+ b.registration_authority,
|
|
|
+ b.business_status,
|
|
|
+ b.business_term,
|
|
|
+ b.business_scope
|
|
|
+<!-- b.business_url -->
|
|
|
+
|
|
|
from
|
|
|
mde_job_fair as f
|
|
|
inner join mde_job_fair_detail as d on f.id = d.job_fair_id
|
|
@@ -57,43 +104,40 @@
|
|
|
and a.status = 0
|
|
|
and (a.expire_time > now() or a.expire_time is null)
|
|
|
|
|
|
- <if test="reqVO.enterpriseId != null">
|
|
|
- and e.id = #{enterpriseId}
|
|
|
- and f.enterprise_id = #{enterpriseId}
|
|
|
+ <if test="reqVO.enterpriseId != null and 0!=reqVO.enterpriseId">
|
|
|
+ and e.id = #{reqVO.enterpriseId}
|
|
|
+ and f.enterprise_id = #{reqVO.enterpriseId}
|
|
|
</if>
|
|
|
- <if test="reqVO.jobFairId != null">
|
|
|
- and f.id = #{jobFairId}
|
|
|
+ <if test="reqVO.jobFairId != null and 0!=reqVO.jobFairId ">
|
|
|
+ and f.id = #{reqVO.jobFairId}
|
|
|
</if>
|
|
|
<if test="reqVO.content != null and reqVO.content != ''">
|
|
|
and (a.name like concat('%',#{content},'%') or e.name like concat('%',#{content},'%')) or e.another_name like concat('%',#{content},'%'))
|
|
|
</if>
|
|
|
- <if test="reqVO.areaId != null">
|
|
|
- and a.area_id = #{areaId}
|
|
|
+ <if test="reqVO.areaId != null and 0!=reqVO.areaId">
|
|
|
+ and a.area_id = #{reqVO.areaId}
|
|
|
</if>
|
|
|
- <if test="reqVO.positionId != null">
|
|
|
- and a.position_id = #{positionId}
|
|
|
+ <if test="reqVO.positionId != null and 0!= reqVO.positionId">
|
|
|
+ and a.position_id = #{reqVO.positionId}
|
|
|
</if>
|
|
|
- <if test="reqVO.jobType != null">
|
|
|
- and a.job_type = #{jobType}
|
|
|
- </if>
|
|
|
- <if test="reqVO.eduType != null">
|
|
|
- and a.edu_type = #{eduType}
|
|
|
+<!-- <if test="reqVO.jobType != null">-->
|
|
|
+<!-- and a.job_type = #{reqVO.jobType}-->
|
|
|
+<!-- </if>-->
|
|
|
+ <if test="reqVO.eduType != null and 0!=reqVO.eduType ">
|
|
|
+ and a.edu_type = #{reqVO.eduType}
|
|
|
</if>
|
|
|
<if test="reqVO.hot != null">
|
|
|
- and x.hot = #{hot}
|
|
|
+ and x.hot = #{reqVO.hot}
|
|
|
</if>
|
|
|
<if test="reqVO.majorId != null">
|
|
|
- and x.major_id = #{majorId}
|
|
|
+ and x.major_id = #{reqVO.majorId}
|
|
|
</if>
|
|
|
-
|
|
|
<if test="reqVO.jobIds != null and reqVO.jobIds.size() > 0 ">
|
|
|
- f.id in
|
|
|
+ and d.job_id in
|
|
|
<foreach collection="reqVO.jobIds" item="item" separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
-
|
|
|
-
|
|
|
</where>
|
|
|
ORDER BY d.create_time ,a.update_time DESC
|
|
|
|