<?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>
|