|
@@ -10,6 +10,9 @@
|
|
<result property="noticeType" column="notice_type"/>
|
|
<result property="noticeType" column="notice_type"/>
|
|
<result property="noticeContent" column="notice_content"/>
|
|
<result property="noticeContent" column="notice_content"/>
|
|
<result property="status" column="status"/>
|
|
<result property="status" column="status"/>
|
|
|
|
+ <result property="isTop" column="is_top"/>
|
|
|
|
+ <result property="author" column="author"/>
|
|
|
|
+ <result property="releaseTime" column="release_time"/>
|
|
<result property="createBy" column="create_by"/>
|
|
<result property="createBy" column="create_by"/>
|
|
<result property="createTime" column="create_time"/>
|
|
<result property="createTime" column="create_time"/>
|
|
<result property="updateBy" column="update_by"/>
|
|
<result property="updateBy" column="update_by"/>
|
|
@@ -23,6 +26,9 @@
|
|
notice_type,
|
|
notice_type,
|
|
cast(notice_content as char) as notice_content,
|
|
cast(notice_content as char) as notice_content,
|
|
status,
|
|
status,
|
|
|
|
+ is_top,
|
|
|
|
+ author,
|
|
|
|
+ release_time,
|
|
create_by,
|
|
create_by,
|
|
create_time,
|
|
create_time,
|
|
update_by,
|
|
update_by,
|
|
@@ -60,6 +66,9 @@
|
|
<if test="noticeType != null and noticeType != '' ">notice_type,</if>
|
|
<if test="noticeType != null and noticeType != '' ">notice_type,</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="isTop != null">is_top,</if>
|
|
|
|
+ <if test="author != null">author,</if>
|
|
|
|
+ <if test="releaseTime != null">release_time,</if>
|
|
<if test="remark != null and remark != ''">remark,</if>
|
|
<if test="remark != null and remark != ''">remark,</if>
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
create_time
|
|
create_time
|
|
@@ -68,6 +77,9 @@
|
|
<if test="noticeType != null and noticeType != ''">#{noticeType},</if>
|
|
<if test="noticeType != null and noticeType != ''">#{noticeType},</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="isTop != null">#{isTop},</if>
|
|
|
|
+ <if test="author != null">#{author},</if>
|
|
|
|
+ <if test="releaseTime != null">#{releaseTime},</if>
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
sysdate()
|
|
sysdate()
|
|
@@ -81,6 +93,9 @@
|
|
<if test="noticeType != null and noticeType != ''">notice_type = #{noticeType},</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 = #{noticeContent},</if>
|
|
<if test="status != null and status != ''">status = #{status},</if>
|
|
<if test="status != null and status != ''">status = #{status},</if>
|
|
|
|
+ <if test="isTop != null">is_top = #{isTop},</if>
|
|
|
|
+ <if test="author != null">author = #{author},</if>
|
|
|
|
+ <if test="releaseTime != null">release_time = #{releaseTime},</if>
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
update_time = sysdate()
|
|
update_time = sysdate()
|
|
</set>
|
|
</set>
|
|
@@ -100,4 +115,13 @@
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
|
|
+ <select id="selectNoticeListApp" parameterType="SysNotice" resultMap="SysNoticeResult">
|
|
|
|
+ <include refid="selectNoticeVo"/>
|
|
|
|
+ where status = 0
|
|
|
|
+ ORDER BY
|
|
|
|
+ is_top desc,release_time desc
|
|
|
|
+ <if test="limit != null and limit != ''">
|
|
|
|
+ limit #{limit}
|
|
|
|
+ </if>
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|