TdPParkingShareOrderTempSMapper.xml
4.52 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
69
70
71
<?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.pay.mapper.smapper.TdPParkingShareOrderTempSMapper">
<resultMap id="BaseResultMap" type="com.zteits.pay.domain.TdPParkingShareOrderTemp">
<id column="id" property="id" jdbcType="BIGINT"/>
<result column="order_id" property="orderId" jdbcType="VARCHAR"/>
<result column="ps_pre_in_time" property="psPreInTime" jdbcType="TIMESTAMP"/>
<result column="ps_pre_out_time" property="psPreOutTime" jdbcType="TIMESTAMP"/>
<result column="ps_in_time" property="psInTime" jdbcType="TIMESTAMP"/>
<result column="ps_out_time" property="psOutTime" jdbcType="TIMESTAMP"/>
<result column="ps_service_cust_id" property="psServiceCustId" jdbcType="VARCHAR"/>
<result column="ps_service_tel" property="psServiceTel" jdbcType="VARCHAR"/>
<result column="ps_service_name" property="psServiceName" jdbcType="VARCHAR"/>
<result column="pay_status" property="payStatus" jdbcType="CHAR"/>
<result column="account_type" property="accountType" jdbcType="INTEGER"/>
<result column="pl_name" property="plName" jdbcType="VARCHAR"/>
<result column="pl_no" property="plNo" jdbcType="VARCHAR"/>
<result column="ps_berth_no" property="psBerthNo" jdbcType="VARCHAR"/>
<result column="act_payed_fee" property="actPayedFee" jdbcType="DECIMAL"/>
<result column="payed_fee" property="payedFee" jdbcType="DECIMAL"/>
<result column="not_pay_fee" property="notPayFee" jdbcType="DECIMAL"/>
<result column="total_fee" property="totalFee" jdbcType="DECIMAL"/>
<result column="refunded_fee" property="refundedFee" jdbcType="DECIMAL"/>
<result column="create_emp_id" property="createEmpId" jdbcType="VARCHAR"/>
<result column="create_emp_name" property="createEmpName" jdbcType="VARCHAR"/>
<result column="create_date" property="createDate" jdbcType="TIMESTAMP"/>
<result column="modfiy_empid" property="modfiyEmpid" jdbcType="VARCHAR"/>
<result column="modfiy_empid_name" property="modfiyEmpidName" jdbcType="VARCHAR"/>
<result column="modfiy_date" property="modfiyDate" jdbcType="TIMESTAMP"/>
<result column="remark" property="remark" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
id, order_id, ps_pre_in_time, ps_pre_out_time, ps_in_time, ps_out_time, ps_service_cust_id,
ps_service_tel, ps_service_name, pay_status, account_type, pl_name, pl_no, ps_berth_no,
act_payed_fee, payed_fee, not_pay_fee, total_fee, refunded_fee, create_emp_id, create_emp_name,
create_date, modfiy_empid, modfiy_empid_name, modfiy_date, remark
</sql>
<delete id="clearShareOrderTempInfo">
TRUNCATE TABLE td_p_parking_share_order_temp;
</delete>
<insert id="batchSaveShareOrderTempInfo">
insert into td_p_parking_share_order_temp (order_id, ps_pre_in_time, ps_pre_out_time,
ps_in_time, ps_out_time, ps_service_cust_id,
ps_service_tel, ps_service_name, pay_status,
account_type, pl_name, pl_no,
ps_berth_no, act_payed_fee, payed_fee,
not_pay_fee, total_fee, refunded_fee,
create_emp_id, create_emp_name, create_date,
modfiy_empid, modfiy_empid_name, modfiy_date,
remark)
values
<foreach collection="tempList" item="temp" separator="," >
(
#{temp.orderId,jdbcType=VARCHAR}, #{temp.psPreInTime,jdbcType=TIMESTAMP}, #{temp.psPreOutTime,jdbcType=TIMESTAMP},
#{temp.psInTime,jdbcType=TIMESTAMP}, #{temp.psOutTime,jdbcType=TIMESTAMP}, #{temp.psServiceCustId,jdbcType=VARCHAR},
#{temp.psServiceTel,jdbcType=VARCHAR}, #{temp.psServiceName,jdbcType=VARCHAR}, #{temp.payStatus,jdbcType=CHAR},
#{temp.accountType,jdbcType=INTEGER}, #{temp.plName,jdbcType=VARCHAR}, #{temp.plNo,jdbcType=VARCHAR},
#{temp.psBerthNo,jdbcType=VARCHAR}, #{temp.actPayedFee,jdbcType=DECIMAL}, #{temp.payedFee,jdbcType=DECIMAL},
#{temp.notPayFee,jdbcType=DECIMAL}, #{temp.totalFee,jdbcType=DECIMAL}, #{temp.refundedFee,jdbcType=DECIMAL},
#{temp.createEmpId,jdbcType=VARCHAR}, #{temp.createEmpName,jdbcType=VARCHAR}, #{temp.createDate,jdbcType=TIMESTAMP},
#{temp.modfiyEmpid,jdbcType=VARCHAR}, #{temp.modfiyEmpidName,jdbcType=VARCHAR}, #{temp.modfiyDate,jdbcType=TIMESTAMP},
#{temp.remark,jdbcType=VARCHAR}
)
</foreach>
</insert>
</mapper>