处理bug
This commit is contained in:
@@ -168,28 +168,28 @@
|
|||||||
INNER JOIN bg_company c ON ra.company_id = c.id
|
INNER JOIN bg_company c ON ra.company_id = c.id
|
||||||
WHERE c.status = 1
|
WHERE c.status = 1
|
||||||
AND ra.status = 1
|
AND ra.status = 1
|
||||||
AND (
|
AND ra.clean_status = 1
|
||||||
1 = 0
|
<!-- 命中任一维度:UNION合并两个维度的公告id,外层保持单个可半连接的IN -->
|
||||||
<if test="industryNames != null and industryNames.size() > 0">
|
AND ra.id IN (
|
||||||
OR ra.id IN (
|
<trim prefixOverrides="UNION">
|
||||||
|
<if test="industryNames != null and industryNames.size() > 0">
|
||||||
SELECT rai.announcement_id
|
SELECT rai.announcement_id
|
||||||
FROM bg_recruit_announcement_industry rai
|
FROM bg_recruit_announcement_industry rai
|
||||||
WHERE rai.industry_name IN
|
WHERE rai.industry_name IN
|
||||||
<foreach collection="industryNames" item="name" open="(" separator="," close=")">
|
<foreach collection="industryNames" item="name" open="(" separator="," close=")">
|
||||||
#{name}
|
#{name}
|
||||||
</foreach>
|
</foreach>
|
||||||
)
|
</if>
|
||||||
</if>
|
<if test="categoryNames != null and categoryNames.size() > 0">
|
||||||
<if test="categoryNames != null and categoryNames.size() > 0">
|
UNION
|
||||||
OR ra.id IN (
|
|
||||||
SELECT rac.announcement_id
|
SELECT rac.announcement_id
|
||||||
FROM bg_recruit_announcement_category rac
|
FROM bg_recruit_announcement_category rac
|
||||||
WHERE rac.category_name IN
|
WHERE rac.category_name IN
|
||||||
<foreach collection="categoryNames" item="name" open="(" separator="," close=")">
|
<foreach collection="categoryNames" item="name" open="(" separator="," close=")">
|
||||||
#{name}
|
#{name}
|
||||||
</foreach>
|
</foreach>
|
||||||
)
|
</if>
|
||||||
</if>
|
</trim>
|
||||||
)
|
)
|
||||||
ORDER BY ra.id DESC
|
ORDER BY ra.id DESC
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Reference in New Issue
Block a user