1
zj
2024-06-13 8eea5be3b36875bd4ffe70e6c3a5bb07b1d829bf
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?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.yami.trading.dao.future.FuturesParaMapper">
 
    <sql id="tFuturesParaColumns">
        a.uuid AS "uuid",
        a.symbol AS "symbol",
        a.timenum AS "timenum",
        a.timeunit AS "timeunit",
        a.unit_amount AS "unitAmount",
        a.unit_max_amount AS "unitMaxAmount",
        a.profit_ratio AS "profitRatio",
        a.profit_ratio_cardinality AS "profitRatioCardinality",
        a.unit_fee AS "unitFee",
        a.profit_ratio_max AS "profitRatioMax",
        a.create_by AS "createBy",
        a.update_by AS "updateBy",
        a.update_time AS "updateTime",
        a.remarks AS "remarks",
        a.del_flag AS "delFlag",
        a.create_time_ts AS "createTimeTs",
        a.update_time_ts AS "updateTimeTs",
        a.create_time AS "createTime"
 
    </sql>
 
    <sql id="tFuturesParaJoins">
 
    </sql>
 
 
    <select id="findById" resultType="com.yami.trading.bean.future.dto.FuturesParaDTO">
        SELECT
            <include refid="tFuturesParaColumns"/>
        FROM t_futures_para a
        <include refid="tFuturesParaJoins"/>
        WHERE a.uuid = #{id} and a.del_flag = 0
    </select>
 
    <select id="findList" resultType="com.yami.trading.bean.future.dto.FuturesParaDTO">
        SELECT
            <include refid="tFuturesParaColumns"/>
        FROM t_futures_para a
        <include refid="tFuturesParaJoins"/>
        ${ew.customSqlSegment}
    </select>
 
 
 
</mapper>