commit | author | age
|
a18bfa
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
Z |
2 |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
3 |
<mapper namespace="com.changhong.epc.form.mapper.tenant.TestMapper"> |
|
4 |
|
|
5 |
<resultMap type="com.changhong.epc.bean.parsing.BillInfo" id="billMap"> |
|
6 |
<id property="id" column="id"/> |
|
7 |
<result property="orderCode" column="order_code"/> |
|
8 |
<result property="dataStart" column="data_start"/> |
|
9 |
|
|
10 |
</resultMap> |
|
11 |
|
|
12 |
<select id="selectOrderCode" resultMap="billMap"> |
|
13 |
SELECT |
|
14 |
e.id, |
|
15 |
e.order_code, |
|
16 |
e.data_start |
|
17 |
FROM |
|
18 |
epc_bill_info_{rule} e |
|
19 |
WHERE |
|
20 |
data_start = 10 |
|
21 |
LIMIT 1 |
|
22 |
</select> |
|
23 |
|
|
24 |
<update id="updateBillInfo" > |
|
25 |
update epc_bill_info_{rule} set |
|
26 |
data_start = 15 |
|
27 |
where id = #{id} |
|
28 |
|
|
29 |
</update> |
|
30 |
|
|
31 |
</mapper> |