|
|
@@ -23,7 +23,13 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="selectByConditon" resultMap="BaseResultMap">
|
|
|
- select * from principal_mailbox
|
|
|
+ select mailbox_id,mailbox_title,is_anonymity,create_date,mailbox_creator,read_date,mailbox_status,notifier,school_id,mb_stuid,
|
|
|
+ case is_anonymity when 1 then '匿名' else mb_student end mb_student,
|
|
|
+ case is_anonymity when 1 then null else mb_grade end mb_grade,
|
|
|
+ case is_anonymity when 1 then null else mb_class end mb_class,
|
|
|
+ case is_anonymity when 1 then '匿名' else mb_creatorname end mb_creatorname,
|
|
|
+ mailbox_context,mailbox_files,mb_reply,mb_ignore
|
|
|
+ from principal_mailbox
|
|
|
<where>
|
|
|
<if test="con != null">
|
|
|
${con}
|
|
|
@@ -63,7 +69,14 @@
|
|
|
</insert>
|
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="long" resultMap="BaseResultMap">
|
|
|
- select * from principal_mailbox where mailbox_id = #{id}
|
|
|
+ select
|
|
|
+ mailbox_id,mailbox_title,is_anonymity,create_date,mailbox_creator,read_date,mailbox_status,notifier,school_id,mb_stuid,
|
|
|
+ case is_anonymity when 1 then '匿名' else mb_student end mb_student,
|
|
|
+ case is_anonymity when 1 then null else mb_grade end mb_grade,
|
|
|
+ case is_anonymity when 1 then null else mb_class end mb_class,
|
|
|
+ case is_anonymity when 1 then '匿名' else mb_creatorname end mb_creatorname,
|
|
|
+ mailbox_context,mailbox_files,mb_reply,mb_ignore
|
|
|
+ from principal_mailbox where mailbox_id = #{id}
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|