|
|
@@ -4,7 +4,7 @@
|
|
|
<mapper namespace="com.usoftchina.smartschool.school.wxschool.mapper.WxPrincipalMailboxMapper">
|
|
|
|
|
|
<sql id="PrincipalMailboxVo">
|
|
|
- select `mailbox_id`,`mailbox_title`,`mailbox_context`,`mailbox_files`,`is_anonymity`,`create_date`,`mailbox_creator`,`read_date`,`mailbox_status`,`notifier`,`school_id` from principal_mailbox
|
|
|
+ select `mailbox_id`,`mailbox_title`,`mailbox_context`,`mailbox_files`,`is_anonymity`,`create_date`,`mailbox_creator`,`read_date`,`mailbox_status`,`notifier`,`school_id`,`mb_stuid`,`mb_student`,`mb_grade`,`mb_class`,`mb_ignore`,`mb_reply` from principal_mailbox
|
|
|
</sql>
|
|
|
|
|
|
<select id="get" resultType="com.usoftchina.smartschool.school.po.PrincipalMailboxDO">
|
|
|
@@ -25,6 +25,12 @@
|
|
|
<if test="mailboxStatus != null and mailboxStatus != ''"> and mailbox_status = #{mailboxStatus} </if>
|
|
|
<if test="notifier != null and notifier != ''"> and notifier = #{notifier} </if>
|
|
|
<if test="schoolId != null and schoolId != ''"> and school_id = #{schoolId} </if>
|
|
|
+ <if test="mbStuid != null and mbStuid != ''"> and mb_stuid = #{mbStuid} </if>
|
|
|
+ <if test="mbStudent != null and mbStudent != ''"> and mb_student = #{mbStudent} </if>
|
|
|
+ <if test="mbGrade != null and mbGrade != ''"> and mb_grade = #{mbGrade} </if>
|
|
|
+ <if test="mbClass != null and mbClass != ''"> and mb_class = #{mbClass} </if>
|
|
|
+ <if test="mbIgnore != null and mbIgnore != ''"> and mb_ignore = #{mbIgnore} </if>
|
|
|
+ <if test="mbReply != null and mbReply != ''"> and mb_reply = #{mbReply} </if>
|
|
|
</where>
|
|
|
<choose>
|
|
|
<when test="sort != null and sort.trim() != ''">
|
|
|
@@ -53,6 +59,12 @@
|
|
|
<if test="mailboxStatus != null and mailboxStatus != ''"> and mailbox_status = #{mailboxStatus} </if>
|
|
|
<if test="notifier != null and notifier != ''"> and notifier = #{notifier} </if>
|
|
|
<if test="schoolId != null and schoolId != ''"> and school_id = #{schoolId} </if>
|
|
|
+ <if test="mbStuid != null and mbStuid != ''"> and mb_stuid = #{mbStuid} </if>
|
|
|
+ <if test="mbStudent != null and mbStudent != ''"> and mb_student = #{mbStudent} </if>
|
|
|
+ <if test="mbGrade != null and mbGrade != ''"> and mb_grade = #{mbGrade} </if>
|
|
|
+ <if test="mbClass != null and mbClass != ''"> and mb_class = #{mbClass} </if>
|
|
|
+ <if test="mbIgnore != null and mbIgnore != ''"> and mb_ignore = #{mbIgnore} </if>
|
|
|
+ <if test="mbReply != null and mbReply != ''"> and mb_reply = #{mbReply} </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -68,7 +80,13 @@
|
|
|
`read_date`,
|
|
|
`mailbox_status`,
|
|
|
`notifier`,
|
|
|
- `school_id`
|
|
|
+ `school_id`,
|
|
|
+ `mb_stuid`,
|
|
|
+ `mb_student`,
|
|
|
+ `mb_grade`,
|
|
|
+ `mb_class`,
|
|
|
+ `mb_ignore`,
|
|
|
+ `mb_reply`
|
|
|
)
|
|
|
values
|
|
|
(
|
|
|
@@ -81,7 +99,13 @@
|
|
|
#{readDate},
|
|
|
#{mailboxStatus},
|
|
|
#{notifier},
|
|
|
- #{schoolId}
|
|
|
+ #{schoolId},
|
|
|
+ #{mb_stuid},
|
|
|
+ #{mb_student},
|
|
|
+ #{mb_grade},
|
|
|
+ #{mb_class},
|
|
|
+ #{mb_ignore},
|
|
|
+ #{mb_reply}
|
|
|
)
|
|
|
</insert>
|
|
|
|
|
|
@@ -97,7 +121,13 @@
|
|
|
<if test="readDate != null">`read_date` = #{readDate}, </if>
|
|
|
<if test="mailboxStatus != null">`mailbox_status` = #{mailboxStatus}, </if>
|
|
|
<if test="notifier != null">`notifier` = #{notifier},</if>
|
|
|
- <if test="schoolId != null and schoolId != ''"> `school_id` = #{schoolId} </if>
|
|
|
+ <if test="schoolId != null"> `school_id` = #{schoolId}, </if>
|
|
|
+ <if test="mbStuid != null"> mb_stuid = #{mbStuid}, </if>
|
|
|
+ <if test="mbStudent != null"> mb_student = #{mbStudent}, </if>
|
|
|
+ <if test="mbGrade != null"> mb_grade = #{mbGrade}, </if>
|
|
|
+ <if test="mbClass != null"> mb_class = #{mbClass}, </if>
|
|
|
+ <if test="mbIgnore != null"> mb_ignore = #{mbIgnore}, </if>
|
|
|
+ <if test="mbReply != null"> mb_reply = #{mbReply} </if>
|
|
|
</set>
|
|
|
where mailbox_id = #{mailboxId}
|
|
|
</update>
|