Helius
2020-08-06 915f1e9378fb1486ef15163010168e6f83951c6f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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.documentary.dao.FollowTraderInfoDao">
    
    <select id="selectFollowTraderInfoEntityBytreaderId" resultType="com.xcong.excoin.modules.documentary.entity.FollowTraderInfoEntity">
        select * from follow_trader_info where id = #{traderId}
    </select>
 
 
    <select id="selectTraderInfoByMemberId" resultType="com.xcong.excoin.modules.documentary.entity.FollowTraderInfoEntity">
        select * from follow_trader_info where member_id=#{memberId} and verify_status in (1,3)
    </select>
 
 
    <select id="selectTraderInfoByOrderId" resultType="com.xcong.excoin.modules.documentary.entity.FollowTraderInfoEntity">
        select a.*
        from follow_trader_info a, follow_follower_order_relation b
        where a.member_id=b.trade_member_id and b.order_id=#{orderId}
    </select>
</mapper>