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/MsgAccountDetailMapper.xml |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 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 462208a..2add982 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
@@ -5,7 +5,7 @@
 	<resultMap id="BaseResultMap"
 		type="com.yeshi.fanli.entity.bus.msg.MsgAccountDetail">
 		<id column="ma_id" property="id" jdbcType="BIGINT" />
-		<result column="ma_type" property="type" 
+		<result column="ma_type" property="type"
 			typeHandler="com.yeshi.fanli.util.mybatishandler.msg.MsgTypeAccountTypeEnumHandler" />
 		<result column="ma_title" property="title" jdbcType="VARCHAR" />
 		<result column="ma_content" property="content" jdbcType="VARCHAR" />
@@ -13,7 +13,8 @@
 		<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" />
-		<association property="user" column="ma_uid">
+		<association property="user" column="ma_uid"
+			javaType="com.yeshi.fanli.entity.bus.user.UserInfo">
 			<id column="ma_uid" property="id" jdbcType="BIGINT" />
 		</association>
 	</resultMap>
@@ -104,4 +105,13 @@
 		</set>
 		where ma_id = #{id,jdbcType=BIGINT}
 	</update>
+
+
+	
+	<update id="setMsgReadByUid" parameterType="java.lang.Long">
+		update
+		yeshi_ec_msg_account set ma_read=1 where ma_uid=#{0}
+	</update>
+
+
 </mapper>

--
Gitblit v1.8.0