Helius
2020-10-29 1498b23be871aec99314da998569a94c9ab53607
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?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>
 
    <select id="selectAllTraderInfo" resultType="com.xcong.excoin.modules.documentary.entity.FollowTraderInfoEntity">
        select *
        from follow_trader_info
        where verify_status=1
    </select>
</mapper>