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
| <?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.home.dao.MemberQuickBuySaleDao">
| <!-- 字段sql -->
| <sql id="columns">
| id,
| member_id,
| amount_cny,
| amount_usdt,
| payment_type,
| payment_account,
| payment_name,
| payment_code,
| unit_price,
| order_status,
| order_no,
| order_type
| </sql>
|
| <!-- 属性sql -->
| <sql id="propertys">
| #{item.id},
| #{item.memberId},
| #{item.amountCny},
| #{item.amountUsdt},
| #{item.paymentType},
| #{item.paymentAccount},
| #{item.paymentName},
| #{item.paymentCode},
| #{item.unitPrice},
| #{item.orderStatus},
| #{item.orderNo},
| #{item.orderType}
| </sql>
|
| <!-- 插入方法 -->
| <insert id="insert"
| parameterType="com.xcong.excoin.modules.home.entity.MemberQuickBuySaleEntity"
| useGeneratedKeys="true" keyProperty="id">
| INSERT INTO member_quick_buy_sale (
| <include refid="columns"></include>
| )
| VALUES (
| <include refid="propertys"></include>
| )
| </insert>
| </mapper>
|
|