|
@@ -0,0 +1,570 @@
|
|
|
|
+<?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.kmall.admin.dao.MallPaymentOrderDataDao">
|
|
|
|
+
|
|
|
|
+ <resultMap type="com.kmall.admin.entity.MallPaymentOrderDataEntity" id="mall2PaymentOrderDataMap">
|
|
|
|
+ <result property="payOrderId" column="pay_order_id"/>
|
|
|
|
+ <result property="merchantName" column="merchant_name"/>
|
|
|
|
+ <result property="outTradeNo" column="out_trade_no"/>
|
|
|
|
+ <result property="payMoney" column="pay_money"/>
|
|
|
|
+ <result property="refundMoney" column="refund_money"/>
|
|
|
|
+ <result property="payType" column="pay_type"/>
|
|
|
|
+ <result property="paymentType" column="payment_type"/>
|
|
|
|
+ <result property="transactionOrder" column="transaction_order"/>
|
|
|
|
+ <result property="timeStr" column="time_str"/>
|
|
|
|
+ <result property="attach" column="attach"/>
|
|
|
|
+ <result property="transactionStatus" column="transaction_status"/>
|
|
|
|
+ <result property="currencyType" column="currency_type"/>
|
|
|
|
+ <result property="amountOrder" column="Amount_order"/>
|
|
|
|
+ <result property="refundId" column="refund_id"/>
|
|
|
|
+ <result property="merRefundNumber" column="mer_refund_number"/>
|
|
|
|
+ <result property="refundType" column="refund_type"/>
|
|
|
|
+ <result property="refundStatus" column="refund_status"/>
|
|
|
|
+ <result property="applyRefundAmount" column="apply_refund_amount"/>
|
|
|
|
+ <result property="cashCoupon" column="cash_coupon"/>
|
|
|
|
+ <result property="refundRechargpCoupon" column="refund_rechargp_coupon"/>
|
|
|
|
+ <result property="feeCharge" column="fee_charge"/>
|
|
|
|
+ <result property="rate" column="rate"/>
|
|
|
|
+ <result property="payFlag" column="pay_flag"/>
|
|
|
|
+ <result property="serialNumber" column="serial_number"/>
|
|
|
|
+ <result property="oppositeAccount" column="opposite_account"/>
|
|
|
|
+ <result property="otherName" column="other_name"/>
|
|
|
|
+ <result property="bankOrder" column="bank_order"/>
|
|
|
|
+ <result property="businessBasicOrder" column="business_basic_order"/>
|
|
|
|
+ <result property="businessBillingSource" column="business_billing_source"/>
|
|
|
|
+ <result property="businessOrder" column="business_order"/>
|
|
|
|
+ <result property="businessDescription" column="business_description"/>
|
|
|
|
+ <result property="remark" column="remark"/>
|
|
|
|
+ <result property="rateRemark" column="rate_remark"/>
|
|
|
|
+ <result property="paymentNotes" column="payment_notes"/>
|
|
|
|
+ <result property="createrSn" column="creater_sn"/>
|
|
|
|
+ <result property="createTime" column="create_time"/>
|
|
|
|
+ <result property="moderSn" column="moder_sn"/>
|
|
|
|
+ <result property="modTime" column="mod_time"/>
|
|
|
|
+ <result property="tstm" column="tstm"/>
|
|
|
|
+ </resultMap>
|
|
|
|
+
|
|
|
|
+ <select id="queryObject" resultType="com.kmall.admin.entity.MallPaymentOrderDataEntity">
|
|
|
|
+ select
|
|
|
|
+ `pay_order_id`,
|
|
|
|
+ `merchant_name`,
|
|
|
|
+ `out_trade_no`,
|
|
|
|
+ `pay_money`,
|
|
|
|
+ `refund_money`,
|
|
|
|
+ `pay_type`,
|
|
|
|
+ `payment_type`,
|
|
|
|
+ `transaction_order`,
|
|
|
|
+ `time_str`,
|
|
|
|
+ `attach`,
|
|
|
|
+ `transaction_status`,
|
|
|
|
+ `currency_type`,
|
|
|
|
+ `Amount_order`,
|
|
|
|
+ `refund_id`,
|
|
|
|
+ `mer_refund_number`,
|
|
|
|
+ `refund_type`,
|
|
|
|
+ `refund_status`,
|
|
|
|
+ `apply_refund_amount`,
|
|
|
|
+ `cash_coupon`,
|
|
|
|
+ `refund_rechargp_coupon`,
|
|
|
|
+ `fee_charge`,
|
|
|
|
+ `rate`,
|
|
|
|
+ `pay_flag`,
|
|
|
|
+ `serial_number`,
|
|
|
|
+ `opposite_account`,
|
|
|
|
+ `other_name`,
|
|
|
|
+ `bank_order`,
|
|
|
|
+ `business_basic_order`,
|
|
|
|
+ `business_billing_source`,
|
|
|
|
+ `business_order`,
|
|
|
|
+ `business_description`,
|
|
|
|
+ `remark`,
|
|
|
|
+ `rate_remark`,
|
|
|
|
+ `payment_notes`,
|
|
|
|
+ `creater_sn`,
|
|
|
|
+ `create_time`,
|
|
|
|
+ `moder_sn`,
|
|
|
|
+ `mod_time`,
|
|
|
|
+ `tstm`
|
|
|
|
+ from mall2_payment_order_data
|
|
|
|
+ where pay_order_id = #{id}
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <select id="queryList" resultType="com.kmall.admin.entity.MallPaymentOrderDataEntity">
|
|
|
|
+ select
|
|
|
|
+ `pay_order_id`,
|
|
|
|
+ `merchant_name`,
|
|
|
|
+ `out_trade_no`,
|
|
|
|
+ `pay_money`,
|
|
|
|
+ `refund_money`,
|
|
|
|
+ `pay_type`,
|
|
|
|
+ `payment_type`,
|
|
|
|
+ `transaction_order`,
|
|
|
|
+ `time_str`,
|
|
|
|
+ `attach`,
|
|
|
|
+ `transaction_status`,
|
|
|
|
+ `currency_type`,
|
|
|
|
+ `Amount_order`,
|
|
|
|
+ `refund_id`,
|
|
|
|
+ `mer_refund_number`,
|
|
|
|
+ `refund_type`,
|
|
|
|
+ `refund_status`,
|
|
|
|
+ `apply_refund_amount`,
|
|
|
|
+ `cash_coupon`,
|
|
|
|
+ `refund_rechargp_coupon`,
|
|
|
|
+ `fee_charge`,
|
|
|
|
+ `rate`,
|
|
|
|
+ `pay_flag`,
|
|
|
|
+ `serial_number`,
|
|
|
|
+ `opposite_account`,
|
|
|
|
+ `other_name`,
|
|
|
|
+ `bank_order`,
|
|
|
|
+ `business_basic_order`,
|
|
|
|
+ `business_billing_source`,
|
|
|
|
+ `business_order`,
|
|
|
|
+ `business_description`,
|
|
|
|
+ `remark`,
|
|
|
|
+ `rate_remark`,
|
|
|
|
+ `payment_notes`,
|
|
|
|
+ `creater_sn`,
|
|
|
|
+ `create_time`,
|
|
|
|
+ `moder_sn`,
|
|
|
|
+ `mod_time`,
|
|
|
|
+ `tstm`
|
|
|
|
+ from mall2_payment_order_data
|
|
|
|
+ WHERE 1=1
|
|
|
|
+ <if test="payFlag != null and payFlag.trim() != ''">
|
|
|
|
+ AND pay_flag = #{payFlag}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="startTime != null and startTime != ''">
|
|
|
|
+ AND time_str <![CDATA[ > ]]> #{startTime}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="endTime != null and endTime != ''">
|
|
|
|
+ AND time_str <![CDATA[ < ]]> #{endTime}
|
|
|
|
+ </if>
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="sidx != null and sidx.trim() != ''">
|
|
|
|
+ order by ${sidx} ${order}
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ order by pay_order_id desc
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
|
|
+ <if test="offset != null and limit != null">
|
|
|
|
+ limit #{offset}, #{limit}
|
|
|
|
+ </if>
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <select id="queryListData" resultType="com.kmall.admin.entity.MallPaymentOrderDataEntity">
|
|
|
|
+ select
|
|
|
|
+ `pay_order_id`,
|
|
|
|
+ `merchant_name`,
|
|
|
|
+ `out_trade_no`,
|
|
|
|
+ `pay_money`,
|
|
|
|
+ `refund_money`,
|
|
|
|
+ `pay_type`,
|
|
|
|
+ `payment_type`,
|
|
|
|
+ `transaction_order`,
|
|
|
|
+ `time_str`,
|
|
|
|
+ `attach`,
|
|
|
|
+ `transaction_status`,
|
|
|
|
+ `currency_type`,
|
|
|
|
+ `Amount_order`,
|
|
|
|
+ `refund_id`,
|
|
|
|
+ `mer_refund_number`,
|
|
|
|
+ `refund_type`,
|
|
|
|
+ `refund_status`,
|
|
|
|
+ `apply_refund_amount`,
|
|
|
|
+ `cash_coupon`,
|
|
|
|
+ `refund_rechargp_coupon`,
|
|
|
|
+ `fee_charge`,
|
|
|
|
+ `rate`,
|
|
|
|
+ `pay_flag`,
|
|
|
|
+ `serial_number`,
|
|
|
|
+ `opposite_account`,
|
|
|
|
+ `other_name`,
|
|
|
|
+ `bank_order`,
|
|
|
|
+ `business_basic_order`,
|
|
|
|
+ `business_billing_source`,
|
|
|
|
+ `business_order`,
|
|
|
|
+ `business_description`,
|
|
|
|
+ `remark`,
|
|
|
|
+ `rate_remark`,
|
|
|
|
+ `payment_notes`,
|
|
|
|
+ `creater_sn`,
|
|
|
|
+ `create_time`,
|
|
|
|
+ `moder_sn`,
|
|
|
|
+ `mod_time`,
|
|
|
|
+ `tstm`
|
|
|
|
+ from mall2_payment_order_data
|
|
|
|
+ WHERE 1=1
|
|
|
|
+ <if test="payFlag != null and payFlag.trim() != ''">
|
|
|
|
+ AND pay_flag = #{payFlag}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="startTime != null and startTime != ''">
|
|
|
|
+ AND time_str <![CDATA[ > ]]> #{startTime}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="endTime != null and endTime != ''">
|
|
|
|
+ AND time_str <![CDATA[ < ]]> #{endTime}
|
|
|
|
+ </if>
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <select id="queryTotal" resultType="int">
|
|
|
|
+ select count(*) from mall2_payment_order_data
|
|
|
|
+ WHERE 1=1
|
|
|
|
+ <if test="name != null and name.trim() != ''">
|
|
|
|
+ AND name LIKE concat('%',#{name},'%')
|
|
|
|
+ </if>
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <insert id="save" parameterType="com.kmall.admin.entity.MallPaymentOrderDataEntity" useGeneratedKeys="true" keyProperty="payOrderId">
|
|
|
|
+ insert into mall2_payment_order_data(
|
|
|
|
+ `merchant_name`,
|
|
|
|
+ `out_trade_no`,
|
|
|
|
+ `pay_money`,
|
|
|
|
+ `refund_money`,
|
|
|
|
+ `pay_type`,
|
|
|
|
+ `payment_type`,
|
|
|
|
+ `transaction_order`,
|
|
|
|
+ `time_str`,
|
|
|
|
+ `attach`,
|
|
|
|
+ `transaction_status`,
|
|
|
|
+ `currency_type`,
|
|
|
|
+ `Amount_order`,
|
|
|
|
+ `refund_id`,
|
|
|
|
+ `mer_refund_number`,
|
|
|
|
+ `refund_type`,
|
|
|
|
+ `refund_status`,
|
|
|
|
+ `apply_refund_amount`,
|
|
|
|
+ `cash_coupon`,
|
|
|
|
+ `refund_rechargp_coupon`,
|
|
|
|
+ `fee_charge`,
|
|
|
|
+ `rate`,
|
|
|
|
+ `pay_flag`,
|
|
|
|
+ `serial_number`,
|
|
|
|
+ `opposite_account`,
|
|
|
|
+ `other_name`,
|
|
|
|
+ `bank_order`,
|
|
|
|
+ `business_basic_order`,
|
|
|
|
+ `business_billing_source`,
|
|
|
|
+ `business_order`,
|
|
|
|
+ `business_description`,
|
|
|
|
+ `remark`,
|
|
|
|
+ `rate_remark`,
|
|
|
|
+ `payment_notes`,
|
|
|
|
+ `creater_sn`,
|
|
|
|
+ `create_time`
|
|
|
|
+ )
|
|
|
|
+ values(
|
|
|
|
+ #{merchantName},
|
|
|
|
+ #{outTradeNo},
|
|
|
|
+ #{payMoney},
|
|
|
|
+ #{refundMoney},
|
|
|
|
+ #{payType},
|
|
|
|
+ #{paymentType},
|
|
|
|
+ #{transactionOrder},
|
|
|
|
+ #{timeStr},
|
|
|
|
+ #{attach},
|
|
|
|
+ #{transactionStatus},
|
|
|
|
+ #{currencyType},
|
|
|
|
+ #{amountOrder},
|
|
|
|
+ #{refundId},
|
|
|
|
+ #{merRefundNumber},
|
|
|
|
+ #{refundType},
|
|
|
|
+ #{refundStatus},
|
|
|
|
+ #{applyRefundAmount},
|
|
|
|
+ #{cashCoupon},
|
|
|
|
+ #{refundRechargpCoupon},
|
|
|
|
+ #{feeCharge},
|
|
|
|
+ #{rate},
|
|
|
|
+ #{payFlag},
|
|
|
|
+ #{serialNumber},
|
|
|
|
+ #{oppositeAccount},
|
|
|
|
+ #{otherName},
|
|
|
|
+ #{bankOrder},
|
|
|
|
+ #{businessBasicOrder},
|
|
|
|
+ #{businessBillingSource},
|
|
|
|
+ #{businessOrder},
|
|
|
|
+ #{businessDescription},
|
|
|
|
+ #{remark},
|
|
|
|
+ #{rateRemark},
|
|
|
|
+ #{paymentNotes},
|
|
|
|
+ #{createrSn},
|
|
|
|
+ #{createTime}
|
|
|
|
+ </insert>
|
|
|
|
+
|
|
|
|
+ <insert id="saveData" parameterType="com.kmall.admin.entity.MallPaymentOrderDataEntity" useGeneratedKeys="true" keyProperty="payOrderId">
|
|
|
|
+ insert into mall2_payment_order_data
|
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
|
+ <if test="merchantName != null" >
|
|
|
|
+ `merchant_name`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="outTradeNo != null" >
|
|
|
|
+ `out_trade_no`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="payMoney != null" >
|
|
|
|
+ `pay_money`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="refundMoney != null" >
|
|
|
|
+ `refund_money`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="payType != null" >
|
|
|
|
+ `pay_type`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="paymentType != null" >
|
|
|
|
+ `payment_type`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="transactionOrder != null" >
|
|
|
|
+ `transaction_order`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="timeStr != null" >
|
|
|
|
+ `time_str`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="attach != null" >
|
|
|
|
+ `attach`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="transactionStatus != null" >
|
|
|
|
+ `transaction_status`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="currencyType != null" >
|
|
|
|
+ `currency_type`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="amountOrder != null" >
|
|
|
|
+ `Amount_order`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="refundId != null" >
|
|
|
|
+ `refund_id`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="merRefundNumber != null" >
|
|
|
|
+ `mer_refund_number`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="refundType != null" >
|
|
|
|
+ `refund_type`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="refundStatus != null" >
|
|
|
|
+ `refund_status`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="applyRefundAmount != null" >
|
|
|
|
+ `apply_refund_amount`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="cashCoupon != null" >
|
|
|
|
+ `cash_coupon`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="refundRechargpCoupon != null" >
|
|
|
|
+ `refund_rechargp_coupon`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="feeCharge != null" >
|
|
|
|
+ `fee_charge`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="rate != null" >
|
|
|
|
+ `rate`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="payFlag != null" >
|
|
|
|
+ `pay_flag`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="serialNumber != null" >
|
|
|
|
+ `serial_number`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oppositeAccount != null" >
|
|
|
|
+ `opposite_account`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="otherName != null" >
|
|
|
|
+ `other_name`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="bankOrder != null" >
|
|
|
|
+ `bank_order`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="businessBasicOrder != null" >
|
|
|
|
+ `business_basic_order`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="businessBillingSource != null" >
|
|
|
|
+ `business_billing_source`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="businessOrder != null" >
|
|
|
|
+ `business_order`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="businessDescription != null" >
|
|
|
|
+ `business_description`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="remark != null" >
|
|
|
|
+ `remark`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="rateRemark != null" >
|
|
|
|
+ `rate_remark`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="paymentNotes != null" >
|
|
|
|
+ `payment_notes`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createrSn != null" >
|
|
|
|
+ `creater_sn`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createTime != null" >
|
|
|
|
+ `create_time`,
|
|
|
|
+ </if>
|
|
|
|
+ </trim>
|
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
|
+ <if test="merchantName != null" >
|
|
|
|
+ #{merchantName},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="outTradeNo != null" >
|
|
|
|
+ #{outTradeNo},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="payMoney != null" >
|
|
|
|
+ #{payMoney},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="refundMoney != null" >
|
|
|
|
+ #{refundMoney},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="payType != null" >
|
|
|
|
+ #{payType},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="paymentType != null" >
|
|
|
|
+ #{paymentType},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="transactionOrder != null" >
|
|
|
|
+ #{transactionOrder},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="timeStr != null" >
|
|
|
|
+ #{timeStr},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="attach != null" >
|
|
|
|
+ #{attach},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="transactionStatus != null" >
|
|
|
|
+ #{transactionStatus},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="currencyType != null" >
|
|
|
|
+ #{currencyType},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="amountOrder != null" >
|
|
|
|
+ #{amountOrder},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="refundId != null" >
|
|
|
|
+ #{refundId},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="merRefundNumber != null" >
|
|
|
|
+ #{merRefundNumber},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="refundType != null" >
|
|
|
|
+ #{refundType},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="refundStatus != null" >
|
|
|
|
+ #{refundStatus},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="applyRefundAmount != null" >
|
|
|
|
+ #{applyRefundAmount},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="cashCoupon != null" >
|
|
|
|
+ #{cashCoupon},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="refundRechargpCoupon != null" >
|
|
|
|
+ #{refundRechargpCoupon},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="feeCharge != null" >
|
|
|
|
+ #{feeCharge},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="rate != null" >
|
|
|
|
+ #{rate},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="payFlag != null" >
|
|
|
|
+ #{payFlag},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="serialNumber != null" >
|
|
|
|
+ #{serialNumber},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oppositeAccount != null" >
|
|
|
|
+ #{oppositeAccount},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="otherName != null" >
|
|
|
|
+ #{otherName},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="bankOrder != null" >
|
|
|
|
+ #{bankOrder},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="businessBasicOrder != null" >
|
|
|
|
+ #{businessBasicOrder},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="businessBillingSource != null" >
|
|
|
|
+ #{businessBillingSource},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="businessOrder != null" >
|
|
|
|
+ #{businessOrder},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="businessDescription != null" >
|
|
|
|
+ #{businessDescription},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="remark != null" >
|
|
|
|
+ #{remark},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="rateRemark != null" >
|
|
|
|
+ #{rateRemark},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="paymentNotes != null" >
|
|
|
|
+ #{paymentNotes},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createrSn != null" >
|
|
|
|
+ #{createrSn},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createTime != null" >
|
|
|
|
+ #{createTime},
|
|
|
|
+ </if>
|
|
|
|
+ </trim>
|
|
|
|
+ </insert>
|
|
|
|
+
|
|
|
|
+ <update id="update" parameterType="com.kmall.admin.entity.MallPaymentOrderDataEntity">
|
|
|
|
+ update mall2_payment_order_data
|
|
|
|
+ <set>
|
|
|
|
+ <if test="merchantName != null">`merchant_name` = #{merchantName}, </if>
|
|
|
|
+ <if test="outTradeNo != null">`out_trade_no` = #{outTradeNo}, </if>
|
|
|
|
+ <if test="payMoney != null">`pay_money` = #{payMoney}, </if>
|
|
|
|
+ <if test="refundMoney != null">`refund_money` = #{refundMoney}, </if>
|
|
|
|
+ <if test="payType != null">`pay_type` = #{payType}, </if>
|
|
|
|
+ <if test="paymentType != null">`payment_type` = #{paymentType}, </if>
|
|
|
|
+ <if test="transactionOrder != null">`transaction_order` = #{transactionOrder}, </if>
|
|
|
|
+ <if test="timeStr != null">`time_str` = #{timeStr}, </if>
|
|
|
|
+ <if test="attach != null">`attach` = #{attach}, </if>
|
|
|
|
+ <if test="transactionStatus != null">`transaction_status` = #{transactionStatus}, </if>
|
|
|
|
+ <if test="currencyType != null">`currency_type` = #{currencyType}, </if>
|
|
|
|
+ <if test="amountOrder != null">`Amount_order` = #{amountOrder}, </if>
|
|
|
|
+ <if test="refundId != null">`refund_id` = #{refundId}, </if>
|
|
|
|
+ <if test="merRefundNumber != null">`mer_refund_number` = #{merRefundNumber}, </if>
|
|
|
|
+ <if test="refundType != null">`refund_type` = #{refundType}, </if>
|
|
|
|
+ <if test="refundStatus != null">`refund_status` = #{refundStatus}, </if>
|
|
|
|
+ <if test="applyRefundAmount != null">`apply_refund_amount` = #{applyRefundAmount}, </if>
|
|
|
|
+ <if test="cashCoupon != null">`cash_coupon` = #{cashCoupon}, </if>
|
|
|
|
+ <if test="refundRechargpCoupon != null">`refund_rechargp_coupon` = #{refundRechargpCoupon}, </if>
|
|
|
|
+ <if test="feeCharge != null">`fee_charge` = #{feeCharge}, </if>
|
|
|
|
+ <if test="rate != null">`rate` = #{rate}, </if>
|
|
|
|
+ <if test="payFlag != null">`pay_flag` = #{payFlag}, </if>
|
|
|
|
+ <if test="serialNumber != null">`serial_number` = #{serialNumber}, </if>
|
|
|
|
+ <if test="oppositeAccount != null">`opposite_account` = #{oppositeAccount}, </if>
|
|
|
|
+ <if test="otherName != null">`other_name` = #{otherName}, </if>
|
|
|
|
+ <if test="bankOrder != null">`bank_order` = #{bankOrder}, </if>
|
|
|
|
+ <if test="businessBasicOrder != null">`business_basic_order` = #{businessBasicOrder}, </if>
|
|
|
|
+ <if test="businessBillingSource != null">`business_billing_source` = #{businessBillingSource}, </if>
|
|
|
|
+ <if test="businessOrder != null">`business_order` = #{businessOrder}, </if>
|
|
|
|
+ <if test="businessDescription != null">`business_description` = #{businessDescription}, </if>
|
|
|
|
+ <if test="remark != null">`remark` = #{remark}, </if>
|
|
|
|
+ <if test="rateRemark != null">`rate_remark` = #{rateRemark}, </if>
|
|
|
|
+ <if test="paymentNotes != null">`payment_notes` = #{paymentNotes}, </if>
|
|
|
|
+ <if test="createrSn != null">`creater_sn` = #{createrSn}, </if>
|
|
|
|
+ <if test="createTime != null">`create_time` = #{createTime}, </if>
|
|
|
|
+ <if test="moderSn != null">`moder_sn` = #{moderSn}, </if>
|
|
|
|
+ <if test="modTime != null">`mod_time` = #{modTime}, </if>
|
|
|
|
+ <if test="tstm != null">`tstm` = #{tstm}</if>
|
|
|
|
+ </set>
|
|
|
|
+ where pay_order_id = #{payOrderId}
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+ <delete id="delete">
|
|
|
|
+ delete from mall2_payment_order_data where pay_order_id = #{value}
|
|
|
|
+ </delete>
|
|
|
|
+
|
|
|
|
+ <delete id="deleteBatch">
|
|
|
|
+ delete from mall2_payment_order_data where pay_order_id in
|
|
|
|
+ <foreach item="payOrderId" collection="array" open="(" separator="," close=")">
|
|
|
|
+ #{payOrderId}
|
|
|
|
+ </foreach>
|
|
|
|
+ </delete>
|
|
|
|
+
|
|
|
|
+</mapper>
|