| | |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.hnct.system.mapper.SysNoticeMapper"> |
| | | <mapper namespace="com.ycl.system.mapper.SysNoticeMapper"> |
| | | |
| | | <resultMap type="com.hnct.system.domain.SysNotice" id="SysNoticeResult"> |
| | | <resultMap type="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="com.hnct.system.domain.SysNotice" resultMap="SysNoticeResult"> |
| | | <select id="selectNoticeList" parameterType="SysNotice" resultMap="SysNoticeResult"> |
| | | <include refid="selectNoticeVo"/> |
| | | <where> |
| | | <if test="noticeTitle != null and noticeTitle != ''"> |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <insert id="insertNotice" parameterType="com.hnct.system.domain.SysNotice"> |
| | | <insert id="insertNotice" parameterType="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="com.hnct.system.domain.SysNotice"> |
| | | <update id="updateNotice" parameterType="SysNotice"> |
| | | update sys_notice |
| | | <set> |
| | | <if test="noticeTitle != null and noticeTitle != ''">notice_title = #{noticeTitle}, </if> |