根据用户期望岗位,生成岗位推送消息

This commit is contained in:
sh
2026-05-20 12:11:28 +08:00
parent 14965b89e6
commit f2f12d72a1
9 changed files with 57 additions and 2 deletions

View File

@@ -412,4 +412,22 @@
</if>
</update>
<select id="selectUserRecommendJobNotic" resultType="com.ruoyi.cms.domain.Notice">
SELECT
u.user_id,
j.job_id as bussiness_id,
j.job_title as sub_title,
j.company_name|| ',发布了'||j.job_title ||'岗位,薪资'||j.min_salary||'-'||j.max_salary||',快去看看吧' as notice_content,
'职位上新' as title,
'4' as notice_type,
0 as is_read,
'admin' as create_by,
'notice_bar' as remark
FROM job j
JOIN job_title t ON ( t.job_name LIKE '%' || j.job_title || '%' OR j.job_category = t.job_name)
JOIN app_user u ON t.job_id = ANY( string_to_array(u.job_title_id, ',') )
LEFT JOIN notice um ON um.user_id = u.user_id AND um.bussiness_id = j.job_id
WHERE j.posting_date >= #{tenMinutesAgo} AND um.notice_id IS NULL
</select>
</mapper>