添加各种列表查询接口
This commit is contained in:
@@ -62,4 +62,7 @@ public class JobListItemVo {
|
||||
|
||||
/** 最低工作年限 */
|
||||
private Integer minExperience;
|
||||
|
||||
/** 岗位状态(0=有效 1=已下架 2=已过期) */
|
||||
private Integer status;
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
j.source_url,
|
||||
j.required_industry_id,
|
||||
j.min_experience,
|
||||
j.status,
|
||||
c.id AS company_id,
|
||||
c.name AS company_name,
|
||||
c.short_name AS company_short_name,
|
||||
@@ -24,8 +25,14 @@
|
||||
INNER JOIN bg_company c ON j.company_id = c.id
|
||||
INNER JOIN bg_china_regions_code r ON c.region_code = r.code
|
||||
INNER JOIN bg_job_category cat ON j.category_id = cat.id
|
||||
WHERE j.status = 0
|
||||
AND c.status = 1
|
||||
WHERE c.status = 1
|
||||
<!-- 岗位状态过滤 -->
|
||||
<if test="statusFilter != null and statusFilter.size() > 0">
|
||||
AND j.status IN
|
||||
<foreach collection="statusFilter" item="status" open="(" separator="," close=")">
|
||||
#{status}
|
||||
</foreach>
|
||||
</if>
|
||||
<!-- 指定岗位ID列表(用于收藏列表) -->
|
||||
<if test="jobIds != null and jobIds.size() > 0">
|
||||
AND j.id IN
|
||||
|
||||
Reference in New Issue
Block a user