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/MsgMoneyDetailMapper.xml | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgMoneyDetailMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgMoneyDetailMapper.xml index e6e6c3e..0e63936 100644 --- a/fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgMoneyDetailMapper.xml +++ b/fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgMoneyDetailMapper.xml @@ -19,6 +19,7 @@ <result column="mm_order_type" property="orderType" jdbcType="INTEGER" /> <result column="mm_desc" property="desc" jdbcType="VARCHAR" /> <result column="mm_content" property="content" jdbcType="VARCHAR" /> + <result column="extraInfo" property="extraInfo" jdbcType="VARCHAR"/> <association property="user" column="mm_uid" javaType="com.yeshi.fanli.entity.bus.user.UserInfo"> <id column="mm_uid" property="id" jdbcType="BIGINT" /> @@ -43,12 +44,11 @@ #{sourceId,jdbcType=BIGINT} and mm_type=#{type} </select> <select id="listByUid" resultMap="BaseResultMap"> - select - <include refid="Base_Column_List" /> - , mm_source_id as mm_source_id_extract, mm_source_id as - mm_source_id_alipayvalid from yeshi_ec_msg_money where mm_uid = - #{uid,jdbcType=BIGINT} order by mm_update_time desc limit - #{start},#{count} + select d.*, d.mm_source_id as mm_source_id_extract, d.mm_source_id as mm_source_id_alipayvalid + ,t.`mea_content` AS extraInfo from yeshi_ec_msg_money d + LEFT JOIN `yeshi_ec_msg_extra` t ON (t.`mea_rid` = d.`mm_id` AND t.`mea_type` = 'money') + where d.mm_uid =#{uid,jdbcType=BIGINT} order by d.mm_update_time desc + limit #{start},#{count} </select> <select id="countByUid" resultType="java.lang.Long" parameterType="java.lang.Long">select count(mm_id) from yeshi_ec_msg_money where mm_uid -- Gitblit v1.8.0