mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-09-24 22:36:39 +08:00
解决员工查询不到未读通知公告的问题
This commit is contained in:
parent
caab0040ff
commit
28834e2515
@ -155,22 +155,24 @@
|
|||||||
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
|
(
|
||||||
(select t_notice_visible_range.notice_id
|
t_notice.notice_id in
|
||||||
from t_notice_visible_range
|
(select t_notice_visible_range.notice_id
|
||||||
where
|
from t_notice_visible_range
|
||||||
(t_notice_visible_range.data_type = #{departmentDataType}
|
where
|
||||||
<if test="requestEmployeeDepartmentIdList != null and requestEmployeeDepartmentIdList.size > 0">
|
( t_notice_visible_range.data_type = #{departmentDataType}
|
||||||
and
|
<if test="requestEmployeeDepartmentIdList != null and requestEmployeeDepartmentIdList.size > 0">
|
||||||
t_notice_visible_range.data_id
|
and
|
||||||
in
|
t_notice_visible_range.data_id
|
||||||
<foreach collection="requestEmployeeDepartmentIdList" open="(" close=")" separator="," item="item">
|
in
|
||||||
#{item}
|
<foreach collection="requestEmployeeDepartmentIdList" open="(" close=")" separator="," item="item">
|
||||||
</foreach>
|
#{item}
|
||||||
</if>
|
</foreach>
|
||||||
)
|
</if>
|
||||||
or ( t_notice_visible_range.data_type = #{employeeDataType} and t_notice_visible_range.data_id =
|
)
|
||||||
#{requestEmployeeId} )
|
or ( t_notice_visible_range.data_type = #{employeeDataType} and t_notice_visible_range.data_id = #{requestEmployeeId} )
|
||||||
|
)
|
||||||
|
or t_notice.all_visible_flag = true
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
and t_notice.all_visible_flag = true
|
and t_notice.all_visible_flag = true
|
||||||
|
Loading…
Reference in New Issue
Block a user