Merge branch 'dev-nx' of http://192.168.0.56:3000/bonus/devicesmgt into dev-nx

This commit is contained in:
BianLzhaoMin 2024-07-10 14:12:40 +08:00
commit 2e3f6ef8af
1 changed files with 17 additions and 14 deletions

View File

@ -51,30 +51,33 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createBy != null and createBy != ''"> <if test="createBy != null and createBy != ''">
AND sn.create_by like concat('%', #{createBy}, '%') AND sn.create_by like concat('%', #{createBy}, '%')
</if> </if>
order by sn.create_time desc
</select> </select>
<select id="selectUserIdByNoticeId" resultType="java.lang.String"> <select id="selectUserIdByNoticeId" resultType="java.lang.String">
select user_id from sys_notice where notice_id = #{noticeId} select user_id from sys_notice where notice_id = #{noticeId}
</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">