Helius
2021-09-07 1e4cab335b1cb68ad3438e522ea410c2d2e753ed
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
27
28
29
30
31
32
<?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} and b.order_type=1
    </select>
 
    <select id="selectAllTraderInfo" resultType="com.xcong.excoin.modules.documentary.entity.FollowTraderInfoEntity">
        select *
        from follow_trader_info
        where verify_status=1
    </select>
 
    <select id="selectBeTraderCondition" resultType="com.xcong.excoin.modules.documentary.vo.BeTraderConditionVo">
        select *
        from common_configuration
        where state=1 and type = #{type}
    </select>
</mapper>