From 88b54772dbcf5ecab1e2316e4e4626ac901b8908 Mon Sep 17 00:00:00 2001
From: yujian <yujian>
Date: 星期二, 22 一月 2019 15:58:24 +0800
Subject: [PATCH] 邀请码添加返回状态

---
 fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgMoneyDetailMapper.xml |   22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 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 cc69537..58651d4 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
@@ -16,13 +16,13 @@
 		<result column="mm_create_time" property="createTime" jdbcType="TIMESTAMP" />
 		<result column="mm_update_time" property="updateTime" jdbcType="TIMESTAMP" />
 		<result column="mm_read" property="read" jdbcType="BOOLEAN" />
-		<association property="user" column="mm_uid">
+		<association property="user" column="mm_uid"  javaType="com.yeshi.fanli.entity.bus.user.UserInfo">
 			<id column="mm_uid" property="id" jdbcType="BIGINT" />
 		</association>
-		<association property="extract" column="mm_source_id"
+		<association property="extract" column="mm_source_id_extract"
 			select="com.yeshi.fanli.dao.mybatis.ExtractMapper.selectByPrimaryKey">
 		</association>
-		<association property="alipayAccountValid" column="mm_source_id"
+		<association property="alipayAccountValid" column="mm_source_id_alipayvalid"
 			select="com.yeshi.fanli.dao.mybatis.AlipayAccountValidNormalHistoryMapper.selectByPrimaryKey">
 		</association>
 	</resultMap>
@@ -36,8 +36,7 @@
 	</select>
 
 
-	<select id="selectBySourceIdAndMsgType" resultMap="BaseResultMap"
-		parameterType="java.lang.Long">
+	<select id="selectBySourceIdAndMsgType" resultMap="BaseResultMap">
 		select
 		<include refid="Base_Column_List" />
 		from yeshi_ec_msg_money where mm_source_id =
@@ -45,9 +44,11 @@
 	</select>
 
 
-	<select id="listByUid" resultMap="BaseResultMap" parameterType="java.lang.Long">
+	<select id="listByUid" resultMap="BaseResultMap" >
 		select
-		<include refid="Base_Column_List" />
+		<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>
@@ -145,4 +146,11 @@
 		</set>
 		where mm_id = #{id,jdbcType=BIGINT}
 	</update>
+	
+	
+	<update id="setMsgReadByUid" parameterType="java.lang.Long">
+		update
+		yeshi_ec_msg_money set mm_read=1 where mm_uid=#{0}
+	</update>
+	
 </mapper>

--
Gitblit v1.8.0