From ec74f248ddac773a6024a243a37346bd2e9bb028 Mon Sep 17 00:00:00 2001 From: wzy <wzy19931122ai@163.com> Date: Thu, 15 Oct 2020 23:46:09 +0800 Subject: [PATCH] Merge branch 'master' of https://gitee.com/chonggaoxiao/new_excoin_agent --- src/main/resources/mapper/modules/AgentFriendRelationMapper.xml | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/modules/AgentFriendRelationMapper.xml b/src/main/resources/mapper/modules/AgentFriendRelationMapper.xml index a86b18c..ff2b985 100644 --- a/src/main/resources/mapper/modules/AgentFriendRelationMapper.xml +++ b/src/main/resources/mapper/modules/AgentFriendRelationMapper.xml @@ -2,4 +2,14 @@ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.xcong.excoin.modules.agent.mapper.AgentFriendRelationMapper"> + <select id="selectAgentFriendRelationByUserId" resultType="com.xcong.excoin.modules.agent.entity.AgentFriendRelationEntity"> + select * from agent_friend_relation + where user_id=#{userId} + </select> + + <update id="updateByUserId"> + update agent_friend_relation + set return_ratio = #{record.returnRatio} + where user_id=#{record.userId} + </update> </mapper> \ No newline at end of file -- Gitblit v1.9.1