根据用户期望岗位,生成岗位推送消息
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>
|
||||
@@ -36,7 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
(
|
||||
#{item.title}, #{item.noticeType}, #{item.noticeContent},#{item.isRead},#{item.userId},#{item.subTitle},
|
||||
#{item.notReadCount},sysdate(),#{item.bussinessId},
|
||||
#{item.notReadCount},now (),#{item.bussinessId},
|
||||
#{item.createBy}, #{item.createTime}, #{item.delFlag},#{item.remark}
|
||||
)
|
||||
</foreach>
|
||||
|
||||
Reference in New Issue
Block a user