123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849 |
- <?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="queryListTimeAndTnoData" 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="outTradeNo != null and outTradeNo != ''">
- AND out_trade_no = #{outTradeNo}
- </if>
- <if test="timeStr != null and timeStr != ''">
- AND time_str = #{timeStr}
- </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>
- <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>
-
- <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="saveBatch" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id">
- <foreach collection ="list" item="item" index= "index" separator =";">
- insert into mall2_payment_order_data
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="item.merchantName != null" >
- `merchant_name`,
- </if>
- <if test="item.outTradeNo != null" >
- `out_trade_no`,
- </if>
- <if test="item.payMoney != null" >
- `pay_money`,
- </if>
- <if test="item.refundMoney != null" >
- `refund_money`,
- </if>
- <if test="item.payType != null" >
- `pay_type`,
- </if>
- <if test="item.paymentType != null" >
- `payment_type`,
- </if>
- <if test="item.transactionOrder != null" >
- `transaction_order`,
- </if>
- <if test="item.timeStr != null" >
- `time_str`,
- </if>
- <if test="item.attach != null" >
- `attach`,
- </if>
- <if test="item.transactionStatus != null" >
- `transaction_status`,
- </if>
- <if test="item.currencyType != null" >
- `currency_type`,
- </if>
- <if test="item.amountOrder != null" >
- `Amount_order`,
- </if>
- <if test="item.refundId != null" >
- `refund_id`,
- </if>
- <if test="item.merRefundNumber != null" >
- `mer_refund_number`,
- </if>
- <if test="item.refundType != null" >
- `refund_type`,
- </if>
- <if test="item.refundStatus != null" >
- `refund_status`,
- </if>
- <if test="item.applyRefundAmount != null" >
- `apply_refund_amount`,
- </if>
- <if test="item.cashCoupon != null" >
- `cash_coupon`,
- </if>
- <if test="item.refundRechargpCoupon != null" >
- `refund_rechargp_coupon`,
- </if>
- <if test="item.feeCharge != null" >
- `fee_charge`,
- </if>
- <if test="item.rate != null" >
- `rate`,
- </if>
- <if test="item.payFlag != null" >
- `pay_flag`,
- </if>
- <if test="item.serialNumber != null" >
- `serial_number`,
- </if>
- <if test="item.oppositeAccount != null" >
- `opposite_account`,
- </if>
- <if test="item.otherName != null" >
- `other_name`,
- </if>
- <if test="item.bankOrder != null" >
- `bank_order`,
- </if>
- <if test="item.businessBasicOrder != null" >
- `business_basic_order`,
- </if>
- <if test="item.businessBillingSource != null" >
- `business_billing_source`,
- </if>
- <if test="item.businessOrder != null" >
- `business_order`,
- </if>
- <if test="item.businessDescription != null" >
- `business_description`,
- </if>
- <if test="item.remark != null" >
- `remark`,
- </if>
- <if test="item.rateRemark != null" >
- `rate_remark`,
- </if>
- <if test="item.paymentNotes != null" >
- `payment_notes`,
- </if>
- <if test="item.createrSn != null" >
- `creater_sn`,
- </if>
- <if test="item.createTime != null" >
- `create_time`,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="item.merchantName != null" >
- #{item.merchantName},
- </if>
- <if test="item.outTradeNo != null" >
- #{item.outTradeNo},
- </if>
- <if test="item.payMoney != null" >
- #{item.payMoney},
- </if>
- <if test="item.refundMoney != null" >
- #{item.refundMoney},
- </if>
- <if test="item.payType != null" >
- #{item.payType},
- </if>
- <if test="item.paymentType != null" >
- #{item.paymentType},
- </if>
- <if test="item.transactionOrder != null" >
- #{item.transactionOrder},
- </if>
- <if test="item.timeStr != null" >
- #{item.timeStr},
- </if>
- <if test="item.attach != null" >
- #{item.attach},
- </if>
- <if test="item.transactionStatus != null" >
- #{item.transactionStatus},
- </if>
- <if test="item.currencyType != null" >
- #{item.currencyType},
- </if>
- <if test="item.amountOrder != null" >
- #{item.amountOrder},
- </if>
- <if test="item.refundId != null" >
- #{item.refundId},
- </if>
- <if test="item.merRefundNumber != null" >
- #{item.merRefundNumber},
- </if>
- <if test="item.refundType != null" >
- #{item.refundType},
- </if>
- <if test="item.refundStatus != null" >
- #{item.refundStatus},
- </if>
- <if test="item.applyRefundAmount != null" >
- #{item.applyRefundAmount},
- </if>
- <if test="item.cashCoupon != null" >
- #{item.cashCoupon},
- </if>
- <if test="item.refundRechargpCoupon != null" >
- #{item.refundRechargpCoupon},
- </if>
- <if test="item.feeCharge != null" >
- #{item.feeCharge},
- </if>
- <if test="item.rate != null" >
- #{item.rate},
- </if>
- <if test="item.payFlag != null" >
- #{item.payFlag},
- </if>
- <if test="item.serialNumber != null" >
- #{item.serialNumber},
- </if>
- <if test="item.oppositeAccount != null" >
- #{item.oppositeAccount},
- </if>
- <if test="item.otherName != null" >
- #{item.otherName},
- </if>
- <if test="item.bankOrder != null" >
- #{item.bankOrder},
- </if>
- <if test="item.businessBasicOrder != null" >
- #{item.businessBasicOrder},
- </if>
- <if test="item.businessBillingSource != null" >
- #{item.businessBillingSource},
- </if>
- <if test="item.businessOrder != null" >
- #{item.businessOrder},
- </if>
- <if test="item.businessDescription != null" >
- #{item.businessDescription},
- </if>
- <if test="item.remark != null" >
- #{item.remark},
- </if>
- <if test="item.rateRemark != null" >
- #{item.rateRemark},
- </if>
- <if test="item.paymentNotes != null" >
- #{item.paymentNotes},
- </if>
- <if test="item.createrSn != null" >
- #{item.createrSn},
- </if>
- <if test="item.createTime != null" >
- #{item.createTime},
- </if>
- </trim>
- </foreach>
- </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>
|