xiaoyong931011
2021-04-23 92fb3070e7b46a1afd7e6b038f45a9fb37d0eaa3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?xml version="1.0" encoding="UTF-8"?>
<!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>