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/MsgOrderDetailMapper.xml | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgOrderDetailMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgOrderDetailMapper.xml index 7e00a0b..ed06524 100644 --- a/fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgOrderDetailMapper.xml +++ b/fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgOrderDetailMapper.xml @@ -16,7 +16,7 @@ <result column="mo_read" property="read" jdbcType="BOOLEAN" /> <result column="mo_create_time" property="createTime" jdbcType="TIMESTAMP" /> <result column="mo_update_time" property="updateTime" jdbcType="TIMESTAMP" /> - <association property="user" column="mo_uid"> + <association property="user" column="mo_uid" javaType="com.yeshi.fanli.entity.bus.user.UserInfo"> <id column="mo_uid" property="id" jdbcType="BIGINT" /> </association> </resultMap> @@ -36,6 +36,14 @@ from yeshi_ec_msg_order where mo_uid = #{uid,jdbcType=BIGINT} and mo_order_id=#{orderId} </select> + + + <select id="listByOrderId" resultMap="BaseResultMap" parameterType="java.lang.String"> + select + <include refid="Base_Column_List" /> + from yeshi_ec_msg_order where mo_order_id = #{orderId} + </select> + <select id="listByUid" resultMap="BaseResultMap"> select @@ -126,4 +134,10 @@ </set> where mo_id = #{id,jdbcType=BIGINT} </update> + + + <update id="setMsgReadByUid" parameterType="java.lang.Long"> + update + yeshi_ec_msg_order set mo_read=1 where mo_uid=#{0} + </update> </mapper> -- Gitblit v1.8.0