Helius
2020-05-25 6ac527e204fbcf9bc62f280eb925cddab291fe5b
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
33
34
35
<?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.coin.dao.platform.TradeSettingDao">    
    
    <select id="findTradeSetting" resultType="com.xcong.excoin.modules.coin.entity.PlatformTradeSettingEntity">
        SELECT
            id id,
            spread spread,
            leverageratio leverageRatio,
            outstock outStock,
            closingratio closingRatio,
            agent_return agent_return,
            doing_rate doingRate
        FROM
            platform_trade_setting
    </select>
    
    <select id="findSymbolSkubySymbol" resultType="com.xcong.excoin.modules.coin.entity.PlatformSymbolsSku">
        select * from platform_symbols_sku
         <where>
             <if test="symbol!=null and symbol!=''">
                  name = #{symbol}
             </if>
         </where>
    </select>
 
    <select id="findAllSymbolSkubySymbol" resultType="com.xcong.excoin.modules.coin.entity.PlatformSymbolsSku">
        select * from platform_symbols_sku
    </select>
    
    <select id="findLeverageSetting" resultType="com.xcong.excoin.modules.coin.entity.PlatformLeverageSettingEntity">
        select * from platform_leverage_setting order by value ASC
    </select>
    
</mapper>