From 817761e47af7ea7bae164d3aa47337a7442f1c14 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期一, 13 四月 2020 09:40:58 +0800 Subject: [PATCH] 消息调整 --- fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgAccountDetailMapper.xml | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgAccountDetailMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgAccountDetailMapper.xml index cb988c6..8eb123e 100644 --- a/fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgAccountDetailMapper.xml +++ b/fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgAccountDetailMapper.xml @@ -13,6 +13,7 @@ <result column="ma_read" property="read" jdbcType="BOOLEAN" /> <result column="ma_create_time" property="createTime" jdbcType="TIMESTAMP" /> <result column="ma_update_time" property="updateTime" jdbcType="TIMESTAMP" /> + <result column="extraInfo" property="extraInfo" jdbcType="VARCHAR"/> <association property="user" column="ma_uid" javaType="com.yeshi.fanli.entity.bus.user.UserInfo"> <id column="ma_uid" property="id" jdbcType="BIGINT" /> @@ -29,10 +30,11 @@ <select id="listByUid" resultMap="BaseResultMap"> - select - <include refid="Base_Column_List" /> - from yeshi_ec_msg_account where ma_uid = #{uid,jdbcType=BIGINT} order - by ma_update_time desc limit #{start},#{count} + select d.*,t.`mea_content` AS extraInfo from yeshi_ec_msg_account d + LEFT JOIN `yeshi_ec_msg_extra` t ON (t.`mea_rid` = d.`ma_id` AND t.`mea_type` = 'account') + where d.ma_uid = #{uid,jdbcType=BIGINT} + order by d.ma_update_time desc + limit #{start},#{count} </select> <select id="countByUid" resultType="java.lang.Long" -- Gitblit v1.8.0