TdBEtcSettlementDetailSMapper.xml
4.44 KB
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
58
59
60
61
62
63
64
65
66
67
68
<?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.zteits.order.mapper.smapper.TdBEtcSettlementDetailSMapper">
<resultMap id="BaseResultMap" type="com.zteits.order.domain.TdBEtcSettlementDetail">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="pl_out_no" jdbcType="VARCHAR" property="plOutNo" />
<result column="srv_name" jdbcType="VARCHAR" property="srvName" />
<result column="file_name" jdbcType="VARCHAR" property="fileName" />
<result column="etc_record_id" jdbcType="VARCHAR" property="etcRecordId" />
<result column="car_number" jdbcType="VARCHAR" property="carNumber" />
<result column="plate_color" jdbcType="INTEGER" property="plateColor" />
<result column="car_type" jdbcType="INTEGER" property="carType" />
<result column="etc_card_no" jdbcType="VARCHAR" property="etcCardNo" />
<result column="obu_serial_no" jdbcType="VARCHAR" property="obuSerialNo" />
<result column="park_in_time" jdbcType="TIMESTAMP" property="parkInTime" />
<result column="park_out_time" jdbcType="TIMESTAMP" property="parkOutTime" />
<result column="trade_time" jdbcType="TIMESTAMP" property="tradeTime" />
<result column="total_fee" jdbcType="BIGINT" property="totalFee" />
<result column="act_fee" jdbcType="BIGINT" property="actFee" />
<result column="srv_ratio" jdbcType="DECIMAL" property="srvRatio" />
<result column="src_fee" jdbcType="BIGINT" property="srcFee" />
<result column="mch_act_fee" jdbcType="BIGINT" property="mchActFee" />
<result column="order_type" jdbcType="INTEGER" property="orderType" />
<result column="settlement_time" jdbcType="DATE" property="settlementTime" />
<result column="refund_record_id" jdbcType="VARCHAR" property="refundRecordId" />
<result column="refund_fee" jdbcType="BIGINT" property="refundFee" />
<result column="refund_reason" jdbcType="VARCHAR" property="refundReason" />
<result column="create_emp_id" jdbcType="VARCHAR" property="createEmpId" />
<result column="create_emp_name" jdbcType="VARCHAR" property="createEmpName" />
<result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
<result column="modfiy_empid" jdbcType="VARCHAR" property="modfiyEmpid" />
<result column="modfiy_empid_name" jdbcType="VARCHAR" property="modfiyEmpidName" />
<result column="modfiy_date" jdbcType="TIMESTAMP" property="modfiyDate" />
</resultMap>
<!-- 批量插入 -->
<insert id="batchInsertSettlement" parameterType="com.zteits.order.domain.TdBEtcSettlementDetail">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into td_b_etc_settlement_detail (pl_out_no, srv_name, file_name,
etc_record_id, car_number, plate_color,
car_type, etc_card_no, obu_serial_no,
park_in_time, park_out_time, trade_time,
total_fee, act_fee, srv_ratio,
src_fee, mch_act_fee, order_type,
settlement_time, create_emp_id, create_emp_name,
create_date, refund_record_id, refund_fee, refund_reason
)
values
<foreach collection="list" item="item" index="index" separator=",">
(
#{item.plOutNo,jdbcType=VARCHAR}, #{item.srvName,jdbcType=VARCHAR}, #{item.fileName,jdbcType=VARCHAR},
#{item.etcRecordId,jdbcType=VARCHAR}, #{item.carNumber,jdbcType=VARCHAR}, #{item.plateColor,jdbcType=INTEGER},
#{item.carType,jdbcType=INTEGER}, #{item.etcCardNo,jdbcType=VARCHAR}, #{item.obuSerialNo,jdbcType=VARCHAR},
#{item.parkInTime,jdbcType=TIMESTAMP}, #{item.parkOutTime,jdbcType=TIMESTAMP}, #{item.tradeTime,jdbcType=TIMESTAMP},
#{item.totalFee,jdbcType=BIGINT}, #{item.actFee,jdbcType=BIGINT}, #{item.srvRatio,jdbcType=DECIMAL},
#{item.srcFee,jdbcType=BIGINT}, #{item.mchActFee,jdbcType=BIGINT}, #{item.orderType,jdbcType=INTEGER},
#{item.settlementTime,jdbcType=DATE}, #{item.createEmpId,jdbcType=VARCHAR}, #{item.createEmpName,jdbcType=VARCHAR},
#{item.createDate,jdbcType=TIMESTAMP}, #{item.refundRecordId,jdbcType=VARCHAR},
#{item.refundFee,jdbcType=BIGINT},#{item.refundReason,jdbcType=VARCHAR}
)
</foreach>
</insert>
</mapper>