解决员工查询不到未读通知公告的问题

This commit is contained in:
Zhou Mingfa 2024-02-22 11:28:18 +08:00
parent caab0040ff
commit 28834e2515

View File

@ -155,6 +155,7 @@
left join t_notice_type on t_notice.notice_type_id = t_notice_type.notice_type_id left join t_notice_type on t_notice.notice_type_id = t_notice_type.notice_type_id
<where> <where>
<if test="!administratorFlag"> <if test="!administratorFlag">
(
t_notice.notice_id in t_notice.notice_id in
(select t_notice_visible_range.notice_id (select t_notice_visible_range.notice_id
from t_notice_visible_range from t_notice_visible_range
@ -169,8 +170,9 @@
</foreach> </foreach>
</if> </if>
) )
or ( t_notice_visible_range.data_type = #{employeeDataType} and t_notice_visible_range.data_id = or ( t_notice_visible_range.data_type = #{employeeDataType} and t_notice_visible_range.data_id = #{requestEmployeeId} )
#{requestEmployeeId} ) )
or t_notice.all_visible_flag = true
) )
</if> </if>
and t_notice.all_visible_flag = true and t_notice.all_visible_flag = true