通知公告弹窗微调

This commit is contained in:
mashuai 2024-07-10 10:59:10 +08:00
parent 1db5f7cd6f
commit ff43266b93
1 changed files with 16 additions and 14 deletions

View File

@ -57,24 +57,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select id="getList" resultType="com.bonus.sgzb.system.domain.SysNotice">
SELECT
notice_id,
notice_title,
notice_type,
CAST( notice_content AS CHAR ) AS notice_content,
STATUS,
create_by,
create_time,
update_by,
update_time,
remark
sn.notice_id,
sn.notice_title,
sn.notice_type,
CAST( sn.notice_content AS CHAR ) AS notice_content,
sn.STATUS,
sn.create_by,
su.nick_name,
sn.create_time,
sn.update_by,
sn.update_time,
sn.remark
FROM
sys_notice
sys_notice sn left join sys_user su on sn.create_by = su.user_name
WHERE
(
user_id IS NULL
OR user_id = ''
OR FIND_IN_SET(#{userId}, user_id) = 0
sn.user_id IS NULL
OR sn.user_id = ''
OR FIND_IN_SET(#{userId}, sn.user_id) = 0
)
AND su.user_id != #{userId}
</select>
<insert id="insertNotice" parameterType="com.bonus.sgzb.system.domain.SysNotice">