通知公告弹窗微调
This commit is contained in:
parent
1db5f7cd6f
commit
ff43266b93
|
|
@ -57,24 +57,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</select>
|
</select>
|
||||||
<select id="getList" resultType="com.bonus.sgzb.system.domain.SysNotice">
|
<select id="getList" resultType="com.bonus.sgzb.system.domain.SysNotice">
|
||||||
SELECT
|
SELECT
|
||||||
notice_id,
|
sn.notice_id,
|
||||||
notice_title,
|
sn.notice_title,
|
||||||
notice_type,
|
sn.notice_type,
|
||||||
CAST( notice_content AS CHAR ) AS notice_content,
|
CAST( sn.notice_content AS CHAR ) AS notice_content,
|
||||||
STATUS,
|
sn.STATUS,
|
||||||
create_by,
|
sn.create_by,
|
||||||
create_time,
|
su.nick_name,
|
||||||
update_by,
|
sn.create_time,
|
||||||
update_time,
|
sn.update_by,
|
||||||
remark
|
sn.update_time,
|
||||||
|
sn.remark
|
||||||
FROM
|
FROM
|
||||||
sys_notice
|
sys_notice sn left join sys_user su on sn.create_by = su.user_name
|
||||||
WHERE
|
WHERE
|
||||||
(
|
(
|
||||||
user_id IS NULL
|
sn.user_id IS NULL
|
||||||
OR user_id = ''
|
OR sn.user_id = ''
|
||||||
OR FIND_IN_SET(#{userId}, user_id) = 0
|
OR FIND_IN_SET(#{userId}, sn.user_id) = 0
|
||||||
)
|
)
|
||||||
|
AND su.user_id != #{userId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertNotice" parameterType="com.bonus.sgzb.system.domain.SysNotice">
|
<insert id="insertNotice" parameterType="com.bonus.sgzb.system.domain.SysNotice">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue