|
|
@@ -18,7 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<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_type, CONVERT(NVARCHAR(MAX), notice_content, 0) as notice_content, status, create_by, create_time, update_by, update_time, remark
|
|
|
from sys_notice
|
|
|
</sql>
|
|
|
|
|
|
@@ -54,7 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
)values(
|
|
|
<if test="noticeTitle != null and noticeTitle != ''">#{noticeTitle}, </if>
|
|
|
<if test="noticeType != null and noticeType != ''">#{noticeType}, </if>
|
|
|
- <if test="noticeContent != null and noticeContent != ''">#{noticeContent}, </if>
|
|
|
+ <if test="noticeContent != null and noticeContent != ''">CONVERT(varbinary(max), #{noticeContent}, 0), </if>
|
|
|
<if test="status != null and status != ''">#{status}, </if>
|
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
@@ -67,7 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<set>
|
|
|
<if test="noticeTitle != null and noticeTitle != ''">notice_title = #{noticeTitle}, </if>
|
|
|
<if test="noticeType != null and noticeType != ''">notice_type = #{noticeType}, </if>
|
|
|
- <if test="noticeContent != null">notice_content = #{noticeContent}, </if>
|
|
|
+ <if test="noticeContent != null">notice_content = CONVERT(varbinary(max), #{noticeContent}, 0), </if>
|
|
|
<if test="status != null and status != ''">status = #{status}, </if>
|
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
|
update_time = CURRENT_TIMESTAMP
|