|
@@ -8,7 +8,7 @@
|
|
|
<result property="noticeId" column="notice_id" />
|
|
|
<result property="noticeTitle" column="notice_title" />
|
|
|
<result property="noticeTime" column="notice_time" />
|
|
|
- <result property="detailDetail" column="detail_detail" />
|
|
|
+ <result property="noticeContent" column="notice_content" />
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
@@ -17,14 +17,14 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectPostNoticeVo">
|
|
|
- select notice_id, notice_title, notice_time, detail_detail, create_by, create_time, update_by, update_time ,image from post_notice
|
|
|
+ select notice_id, notice_title, notice_time, cast(notice_content as char) as notice_content, create_by, create_time, update_by, update_time ,image from post_notice
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectPostNoticeList" parameterType="PostNotice" resultMap="PostNoticeResult">
|
|
|
<include refid="selectPostNoticeVo"/>
|
|
|
<where>
|
|
|
<if test="noticeTitle != null and noticeTitle != ''"> and notice_title = #{noticeTitle}</if>
|
|
|
- <if test="detailDetail != null and detailDetail != ''"> and detail_detail = #{detailDetail}</if>
|
|
|
+ <if test="noticeContent != null and noticeContent != ''">and notice_content = #{noticeContent} </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -42,7 +42,7 @@
|
|
|
where notice_id = #{noticeId}
|
|
|
</select>
|
|
|
<select id="selectDetailByNoticeId" resultType="String">
|
|
|
- select detail_detail from post_notice
|
|
|
+ select notice_content from post_notice
|
|
|
where notice_id = #{noticeId}
|
|
|
</select>
|
|
|
|
|
@@ -53,7 +53,7 @@
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="noticeTitle != null">notice_title,</if>
|
|
|
<if test="noticeTime != null">notice_time,</if>
|
|
|
- <if test="detailDetail != null">detail_detail,</if>
|
|
|
+ <if test="noticeContent != null and noticeContent != '' ">notice_content, </if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
@@ -64,7 +64,7 @@
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="noticeTitle != null">#{noticeTitle},</if>
|
|
|
<if test="noticeTime != null">#{noticeTime},</if>
|
|
|
- <if test="detailDetail != null">#{detailDetail},</if>
|
|
|
+ <if test="noticeContent != null and noticeContent != '' ">#{notice_content},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
@@ -78,7 +78,7 @@
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="noticeTitle != null">notice_title = #{noticeTitle},</if>
|
|
|
<if test="noticeTime != null">notice_time = #{noticeTime},</if>
|
|
|
- <if test="detailDetail != null">detail_detail = #{detailDetail},</if>
|
|
|
+ <if test="noticeContent != null">notice_content = #{noticeContent}, </if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|