文件名从 src/main/resources/mybatis/system/SysNoticeMapper.xml 修改 |
| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | | <mapper namespace="com.ruoyi.project.system.mapper.SysNoticeMapper">
|
| | |
|
| | | <resultMap type="SysNotice" id="SysNoticeResult">
|
| | | <resultMap type="com.ruoyi.project.system.domain.SysNotice" id="SysNoticeResult"> |
| | | <result property="noticeId" column="notice_id" />
|
| | | <result property="noticeTitle" column="notice_title" />
|
| | | <result property="noticeType" column="notice_type" />
|
| | |
| | | where notice_id = #{noticeId}
|
| | | </select>
|
| | |
|
| | | <select id="selectNoticeList" parameterType="SysNotice" resultMap="SysNoticeResult">
|
| | | <select id="selectNoticeList" parameterType="com.ruoyi.project.system.domain.SysNotice" resultMap="SysNoticeResult"> |
| | | <include refid="selectNoticeVo"/>
|
| | | <where>
|
| | | <if test="noticeTitle != null and noticeTitle != ''">
|
| | |
| | | </where>
|
| | | </select>
|
| | |
|
| | | <insert id="insertNotice" parameterType="SysNotice">
|
| | | <insert id="insertNotice" parameterType="com.ruoyi.project.system.domain.SysNotice"> |
| | | insert into sys_notice (
|
| | | <if test="noticeTitle != null and noticeTitle != '' ">notice_title, </if>
|
| | | <if test="noticeType != null and noticeType != '' ">notice_type, </if>
|
| | |
| | | )
|
| | | </insert>
|
| | |
|
| | | <update id="updateNotice" parameterType="SysNotice">
|
| | | <update id="updateNotice" parameterType="com.ruoyi.project.system.domain.SysNotice"> |
| | | update sys_notice
|
| | | <set>
|
| | | <if test="noticeTitle != null and noticeTitle != ''">notice_title = #{noticeTitle}, </if>
|