zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
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
<?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.changhong.epc.form.mapper.tenant.TestMapper">
 
    <resultMap type="com.changhong.epc.bean.parsing.BillInfo" id="billMap">
        <id property="id" column="id"/>
        <result property="orderCode" column="order_code"/>
        <result property="dataStart" column="data_start"/>
    
    </resultMap>
 
    <select id="selectOrderCode" resultMap="billMap">
        SELECT
            e.id,
            e.order_code,
            e.data_start
        FROM
            epc_bill_info_{rule} e
        WHERE
            data_start = 10
        LIMIT 1
    </select>
    
    <update id="updateBillInfo" >
        update epc_bill_info_{rule} set
            data_start = 15
        where id = #{id}
    
    </update>
 
</mapper>