|
@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="noticeId" column="notice_id" />
|
|
|
<result property="companyId" column="company_id" />
|
|
|
<result property="noticeTitle" column="notice_title" />
|
|
|
+ <result property="noticeOutline" column="notice_outline" />
|
|
|
<result property="noticeType" column="notice_type" />
|
|
|
<result property="noticeContent" column="notice_content" />
|
|
|
<result property="status" column="status" />
|
|
@@ -20,7 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectNoticeVo">
|
|
|
- select notice_id,company_id,notice_title, notice_type, notice_content, status, create_by, fmz_file_url, create_time, update_by, update_time, remark
|
|
|
+ select notice_id,company_id,notice_title,notice_outline, notice_type, notice_content, status, create_by, fmz_file_url, create_time, update_by, update_time, remark
|
|
|
from sys_notice
|
|
|
</sql>
|
|
|
|
|
@@ -28,6 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
select sn.notice_id,
|
|
|
su.company_id,
|
|
|
sn.notice_title,
|
|
|
+ sn.notice_outline,
|
|
|
sn.notice_type,
|
|
|
sn.notice_content,
|
|
|
sn.status,
|
|
@@ -116,6 +118,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
insert into sys_notice (
|
|
|
<if test="companyId != null and companyId != 0">company_id,</if>
|
|
|
<if test="noticeTitle != null and noticeTitle != '' ">notice_title, </if>
|
|
|
+ <if test="noticeOutline != null and noticeOutline != '' ">notice_outline, </if>
|
|
|
<if test="noticeType != null and noticeType != '' ">notice_type, </if>
|
|
|
<if test="noticeContent != null and noticeContent != '' ">notice_content, </if>
|
|
|
<if test="status != null and status != '' ">status, </if>
|
|
@@ -126,6 +129,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
)values(
|
|
|
<if test="companyId != null and companyId != 0">#{companyId},</if>
|
|
|
<if test="noticeTitle != null and noticeTitle != ''">#{noticeTitle}, </if>
|
|
|
+ <if test="noticeOutline != null and noticeOutline != ''">#{noticeOutline}, </if>
|
|
|
<if test="noticeType != null and noticeType != ''">#{noticeType}, </if>
|
|
|
<if test="noticeContent != null and noticeContent != ''">#{noticeContent}, </if>
|
|
|
<if test="status != null and status != ''">#{status}, </if>
|
|
@@ -140,6 +144,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
update sys_notice
|
|
|
<set>
|
|
|
<if test="noticeTitle != null and noticeTitle != ''">notice_title = #{noticeTitle}, </if>
|
|
|
+ <if test="noticeOutline != null and noticeOutline != ''">notice_outline = #{noticeOutline}, </if>
|
|
|
<if test="noticeType != null and noticeType != ''">notice_type = #{noticeType}, </if>
|
|
|
<if test="noticeContent != null">notice_content = #{noticeContent}, </if>
|
|
|
<if test="status != null and status != ''">status = #{status}, </if>
|