|
|
@@ -0,0 +1,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.fire.order.mapper.FlowOrderInfoMapper">
|
|
|
+
|
|
|
+ <resultMap type="com.fire.dto.FlowOrderInfo" id="FlowOrderInfoMap">
|
|
|
+ <result property="flowAppId" column="flow_app_id" jdbcType="VARCHAR"/>
|
|
|
+ <result property="orderId" column="order_id" jdbcType="VARCHAR"/>
|
|
|
+ <result property="packageId" column="package_id" jdbcType="VARCHAR"/>
|
|
|
+ <result property="customerId" column="customer_id" jdbcType="INTEGER"/>
|
|
|
+ <result property="orderType" column="order_type" jdbcType="INTEGER"/>
|
|
|
+ <result property="customerName" column="customer_name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="phoneNo" column="phone_no" jdbcType="VARCHAR"/>
|
|
|
+ <result property="extorderId" column="extorder_id" jdbcType="VARCHAR"/>
|
|
|
+ <result property="recId" column="rec_id" jdbcType="VARCHAR"/>
|
|
|
+ <result property="applyDate" column="apply_date" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="activeDate" column="active_date" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="limitedDate" column="limited_date" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="status" column="status" jdbcType="INTEGER"/>
|
|
|
+ <result property="note" column="note" jdbcType="VARCHAR"/>
|
|
|
+ <result property="gwSeqNo" column="gw_seq_no" jdbcType="VARCHAR"/>
|
|
|
+ <result property="gwStatus" column="gw_status" jdbcType="VARCHAR"/>
|
|
|
+ <result property="lastModifyDate" column="last_modify_date" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="gwErrorCode" column="gw_error_code" jdbcType="VARCHAR"/>
|
|
|
+ <result property="flowAmount" column="flow_amount" jdbcType="INTEGER"/>
|
|
|
+ <result property="adapterName" column="adapter_name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="usageLimit" column="usage_limit" jdbcType="INTEGER"/>
|
|
|
+ <result property="batchCount" column="batch_count" jdbcType="INTEGER"/>
|
|
|
+ <result property="sendCount" column="send_count" jdbcType="INTEGER"/>
|
|
|
+ <result property="areaCode" column="area_code" jdbcType="VARCHAR"/>
|
|
|
+ <result property="price" column="price" jdbcType="INTEGER"/>
|
|
|
+ <result property="partnerBalancePrice" column="partner_balance_price" jdbcType="INTEGER"/>
|
|
|
+ <result property="operatorBalancePrice" column="operator_balance_price" jdbcType="INTEGER"/>
|
|
|
+ <result property="customerProductId" column="customer_product_id" jdbcType="INTEGER"/>
|
|
|
+ <result property="channelId" column="channel_id" jdbcType="INTEGER"/>
|
|
|
+ <result property="callbackTime" column="callback_time" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="productId" column="product_id" jdbcType="VARCHAR"/>
|
|
|
+ <result property="attr1" column="attr1" jdbcType="VARCHAR"/>
|
|
|
+ <result property="attr2" column="attr2" jdbcType="VARCHAR"/>
|
|
|
+ <result property="attr3" column="attr3" jdbcType="VARCHAR"/>
|
|
|
+ <result property="channelName" column="channel_name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="appId" column="app_id" jdbcType="VARCHAR"/>
|
|
|
+ <result property="channelProductId" column="channel_product_id" jdbcType="INTEGER"/>
|
|
|
+ <result property="callbackStatus" column="callback_status" jdbcType="INTEGER"/>
|
|
|
+ <result property="phoneOperator" column="phone_operator" jdbcType="INTEGER"/>
|
|
|
+ <result property="phoneCity" column="phone_city" jdbcType="VARCHAR"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <!--新增所有列-->
|
|
|
+ <insert id="insert" keyProperty="orderId" useGeneratedKeys="true">
|
|
|
+ insert into flow_order_info(order_id, flow_app_id, package_id, customer_id, order_type, customer_name, phone_no,
|
|
|
+ extorder_id, rec_id, apply_date, active_date, limited_date, status, note,
|
|
|
+ gw_seq_no, gw_status, last_modify_date, gw_error_code, flow_amount,
|
|
|
+ adapter_name, usage_limit, batch_count, send_count, area_code, price,
|
|
|
+ partner_balance_price, operator_balance_price, customer_product_id, channel_id,
|
|
|
+ callback_time, product_id, attr1, attr2, attr3, channel_name, app_id,
|
|
|
+ channel_product_id, callback_status, phone_operator, phone_city)
|
|
|
+ values (#{orderId}, #{flowAppId}, #{packageId}, #{customerId}, #{orderType}, #{customerName}, #{phoneNo},
|
|
|
+ #{extorderId},
|
|
|
+ #{recId}, #{applyDate}, #{activeDate}, #{limitedDate}, #{status}, #{note}, #{gwSeqNo}, #{gwStatus},
|
|
|
+ #{lastModifyDate}, #{gwErrorCode}, #{flowAmount}, #{adapterName}, #{usageLimit}, #{batchCount},
|
|
|
+ #{sendCount}, #{areaCode}, #{price}, #{partnerBalancePrice}, #{operatorBalancePrice},
|
|
|
+ #{customerProductId}, #{channelId}, #{callbackTime}, #{productId}, #{attr1}, #{attr2}, #{attr3},
|
|
|
+ #{channelName}, #{appId}, #{channelProductId}, #{callbackStatus}, #{phoneOperator}, #{phoneCity})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+
|
|
|
+</mapper>
|
|
|
+
|