|
@@ -208,6 +208,57 @@
|
|
|
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
|
|
@@ -215,6 +266,15 @@
|
|
|
<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">
|
|
@@ -293,6 +353,225 @@
|
|
|
#{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="," >
|