|
@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="noticeId" column="notice_id" />
|
|
<result property="noticeId" column="notice_id" />
|
|
<result property="noticeTitle" column="notice_title" />
|
|
<result property="noticeTitle" column="notice_title" />
|
|
<result property="noticeType" column="notice_type" />
|
|
<result property="noticeType" column="notice_type" />
|
|
|
|
+ <result property="noticeImage" column="notice_image" />
|
|
<result property="noticeContent" column="notice_content" />
|
|
<result property="noticeContent" column="notice_content" />
|
|
<result property="status" column="status" />
|
|
<result property="status" column="status" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createBy" column="create_by" />
|
|
@@ -18,7 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectNoticeVo">
|
|
<sql id="selectNoticeVo">
|
|
- select notice_id, notice_title, notice_type, cast(notice_content as char) as notice_content, status, create_by, create_time, update_by, update_time, remark
|
|
|
|
|
|
+ select notice_id, notice_title,notice_image, notice_type, cast(notice_content as char) as notice_content, status, create_by, create_time, update_by, update_time, remark
|
|
from sys_notice
|
|
from sys_notice
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
@@ -46,6 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
insert into sys_notice (
|
|
insert into sys_notice (
|
|
<if test="noticeTitle != null and noticeTitle != '' ">notice_title, </if>
|
|
<if test="noticeTitle != null and noticeTitle != '' ">notice_title, </if>
|
|
<if test="noticeType != null and noticeType != '' ">notice_type, </if>
|
|
<if test="noticeType != null and noticeType != '' ">notice_type, </if>
|
|
|
|
+ <if test="noticeImage != null and noticeImage != '' ">notice_image, </if>
|
|
<if test="noticeContent != null and noticeContent != '' ">notice_content, </if>
|
|
<if test="noticeContent != null and noticeContent != '' ">notice_content, </if>
|
|
<if test="status != null and status != '' ">status, </if>
|
|
<if test="status != null and status != '' ">status, </if>
|
|
<if test="remark != null and remark != ''">remark,</if>
|
|
<if test="remark != null and remark != ''">remark,</if>
|
|
@@ -54,6 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
)values(
|
|
)values(
|
|
<if test="noticeTitle != null and noticeTitle != ''">#{noticeTitle}, </if>
|
|
<if test="noticeTitle != null and noticeTitle != ''">#{noticeTitle}, </if>
|
|
<if test="noticeType != null and noticeType != ''">#{noticeType}, </if>
|
|
<if test="noticeType != null and noticeType != ''">#{noticeType}, </if>
|
|
|
|
+ <if test="noticeImage != null and noticeImage != ''">#{noticeImage}, </if>
|
|
<if test="noticeContent != null and noticeContent != ''">#{noticeContent}, </if>
|
|
<if test="noticeContent != null and noticeContent != ''">#{noticeContent}, </if>
|
|
<if test="status != null and status != ''">#{status}, </if>
|
|
<if test="status != null and status != ''">#{status}, </if>
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
@@ -67,6 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<set>
|
|
<set>
|
|
<if test="noticeTitle != null and noticeTitle != ''">notice_title = #{noticeTitle}, </if>
|
|
<if test="noticeTitle != null and noticeTitle != ''">notice_title = #{noticeTitle}, </if>
|
|
<if test="noticeType != null and noticeType != ''">notice_type = #{noticeType}, </if>
|
|
<if test="noticeType != null and noticeType != ''">notice_type = #{noticeType}, </if>
|
|
|
|
+ <if test="noticeImage != null and noticeImage != ''">notice_image = #{noticeImage}, </if>
|
|
<if test="noticeContent != null">notice_content = #{noticeContent}, </if>
|
|
<if test="noticeContent != null">notice_content = #{noticeContent}, </if>
|
|
<if test="status != null and status != ''">status = #{status}, </if>
|
|
<if test="status != null and status != ''">status = #{status}, </if>
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|