修改pc消息已读、未读接口

This commit is contained in:
sh
2025-11-06 12:28:19 +08:00
parent 8bbc66e7ff
commit e5ba8fe0e7
6 changed files with 45 additions and 12 deletions

View File

@@ -3,6 +3,21 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.NoticeMapper">
<sql id="selectNoticeleVo">
select notice_id, title,sub_title, notice_type, notice_content, is_read,user_id,not_read_count,date, del_flag, create_by, create_time, update_by, remark,bussiness_id from notice
</sql>
<select id="getNoticlist" parameterType="com.ruoyi.cms.domain.Notice" resultType="com.ruoyi.cms.domain.Notice">
<include refid="selectNoticeleVo"/>
<where> del_flag = '0'
<if test="noticeType != null "> and notice_type = #{noticeType}</if>
<if test="isRead != null "> and is_read = #{isRead}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="bussinessId != null "> and bussiness_id = #{bussinessId}</if>
<if test="remark != null "> and remark = #{remark}</if>
</where>
order by create_time desc
</select>
</mapper>