2025-09-22 17:06:47 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.ruoyi.cms.mapper.NoticeMapper">
|
2025-11-06 12:28:19 +08:00
|
|
|
|
|
|
|
|
<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>
|
2025-09-22 17:06:47 +08:00
|
|
|
|
|
|
|
|
</mapper>
|