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
51
52
53
54
55
56
57
| <?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" >
| <!-- Table:epc_app_stander_def_{rule} -->
| <mapper namespace="com.changhong.epc.tenant.mapper.tenant.bill.BillDataMapper">
| <resultMap type="com.changhong.epc.bean.tenant.bill.BillData" id="BillData">
| <result column="order_code" property="orderCode"/>
| <result column="bill_code" property="billCode"/>
| <result column="j_id" property="jId"/>
| <result column="bill_info" property="billInfo"/>
|
| </resultMap>
|
| <delete id="deleteByOrderCode">
|
| delete from `epc_bill_data_{rule}` where `order_code` = #{orderCode}
|
| </delete>
|
| <select id="selectByOrderCode" resultMap="BillData">
| SELECT
| `order_code`,
| `bill_code`,
| `j_id`,
| `bill_info`,
| `ins_p`,
| `ins_t`,
| `upd_p`,
| `upd_t`,
| `data_start`
| FROM
| `epc_bill_data_{rule}`
| WHERE
| `order_code` = #{orderCode}
|
|
| </select>
|
| <select id="selectByOrderCodeAndJ" resultMap="BillData">
| SELECT
| `id`,
| `order_code`,
| `bill_code`,
| `j_id`,
| `bill_info`,
| `ins_p`,
| `ins_t`,
| `upd_p`,
| `upd_t`,
| `data_start`
| FROM
| `epc_bill_data_{rule}`
| WHERE
| `order_code` = #{orderCode}
| AND `j_id` = #{jId}
|
| </select>
| </mapper>
|
|