根据用户期望岗位,生成岗位推送消息
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user