|
@@ -20,10 +20,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="remark" column="remark" />
|
|
<result property="remark" column="remark" />
|
|
|
|
+ <result property="avatar" column="avatar" />
|
|
|
|
+ <result property="schoolName" column="school_name" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectXiaoyuanNoticeVo">
|
|
<sql id="selectXiaoyuanNoticeVo">
|
|
- select notice_id, image, notice_title, notice_type, notice_content, status, type, sender_id, sender_name, sender_dept, create_by, create_time, update_by, update_time, remark from xiaoyuan_notice
|
|
|
|
|
|
+ select notice_id, image, notice_title, notice_type, notice_content, status, type,school_name,avatar, sender_id, sender_name, sender_dept, create_by, create_time, update_by, update_time, remark from xiaoyuan_notice
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectXiaoyuanNoticeList" parameterType="XiaoyuanNotice" resultMap="XiaoyuanNoticeResult">
|
|
<select id="selectXiaoyuanNoticeList" parameterType="XiaoyuanNotice" resultMap="XiaoyuanNoticeResult">
|
|
@@ -35,6 +37,8 @@ SELECT
|
|
notice_content,
|
|
notice_content,
|
|
STATUS,
|
|
STATUS,
|
|
type,
|
|
type,
|
|
|
|
+ avatar,
|
|
|
|
+ school_name,
|
|
sender_id,
|
|
sender_id,
|
|
sender_name,
|
|
sender_name,
|
|
sender_dept,
|
|
sender_dept,
|
|
@@ -56,6 +60,8 @@ SELECT
|
|
notice_content,
|
|
notice_content,
|
|
STATUS,
|
|
STATUS,
|
|
type,
|
|
type,
|
|
|
|
+ avatar,
|
|
|
|
+ school_name,
|
|
sender_id,
|
|
sender_id,
|
|
sender_name,
|
|
sender_name,
|
|
sender_dept,
|
|
sender_dept,
|
|
@@ -77,6 +83,8 @@ SELECT
|
|
notice_content,
|
|
notice_content,
|
|
STATUS,
|
|
STATUS,
|
|
type,
|
|
type,
|
|
|
|
+ avatar,
|
|
|
|
+ school_name,
|
|
sender_id,
|
|
sender_id,
|
|
sender_name,
|
|
sender_name,
|
|
sender_dept,
|
|
sender_dept,
|
|
@@ -106,6 +114,8 @@ WHERE
|
|
<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="type != null and type != ''">type,</if>
|
|
<if test="type != null and type != ''">type,</if>
|
|
|
|
+ <if test="schoolName != null and schoolName != ''">school_name,</if>
|
|
|
|
+ <if test="avatar != null and avatar != ''">avatar,</if>
|
|
<if test="senderId != null">sender_id,</if>
|
|
<if test="senderId != null">sender_id,</if>
|
|
<if test="senderName != null">sender_name,</if>
|
|
<if test="senderName != null">sender_name,</if>
|
|
<if test="senderDept != null">sender_dept,</if>
|
|
<if test="senderDept != null">sender_dept,</if>
|
|
@@ -122,6 +132,8 @@ WHERE
|
|
<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="type != null and type != ''">#{type},</if>
|
|
<if test="type != null and type != ''">#{type},</if>
|
|
|
|
+ <if test="schoolName != null and schoolName != ''">#{schoolName},</if>
|
|
|
|
+ <if test="avatar != null and avatar != ''">#{avatar},</if>
|
|
<if test="senderId != null">#{senderId},</if>
|
|
<if test="senderId != null">#{senderId},</if>
|
|
<if test="senderName != null">#{senderName},</if>
|
|
<if test="senderName != null">#{senderName},</if>
|
|
<if test="senderDept != null">#{senderDept},</if>
|
|
<if test="senderDept != null">#{senderDept},</if>
|
|
@@ -142,6 +154,8 @@ WHERE
|
|
<if test="noticeContent != null and noticeContent != ''">notice_content = #{noticeContent},</if>
|
|
<if test="noticeContent != null and noticeContent != ''">notice_content = #{noticeContent},</if>
|
|
<if test="status != null and status != ''">status = #{status},</if>
|
|
<if test="status != null and status != ''">status = #{status},</if>
|
|
<if test="type != null and type != ''">type = #{type},</if>
|
|
<if test="type != null and type != ''">type = #{type},</if>
|
|
|
|
+ <if test="schoolName != null and schoolName != ''">school_name = #{schoolName},</if>
|
|
|
|
+ <if test="avatar != null and avatar != ''">avatar = #{avatar},</if>
|
|
<if test="senderId != null">sender_id = #{senderId},</if>
|
|
<if test="senderId != null">sender_id = #{senderId},</if>
|
|
<if test="senderName != null">sender_name = #{senderName},</if>
|
|
<if test="senderName != null">sender_name = #{senderName},</if>
|
|
<if test="senderDept != null">sender_dept = #{senderDept},</if>
|
|
<if test="senderDept != null">sender_dept = #{senderDept},</if>
|