Browse Source

12月2日银行接口同步mapper

sunjiabei/feature-20251202094523-银行接口同步
sunjiabei 1 month ago
parent
commit
8e5ef4c14b
  1. 5
      src/main/java/com/example/demo/mapper/cash/CashCollectionMapper.java
  2. 26
      src/main/resources/cashMapper/CashCollectionMapper.xml

5
src/main/java/com/example/demo/mapper/cash/CashCollectionMapper.java

@ -1,6 +1,8 @@
package com.example.demo.mapper.cash;
//import com.example.demo.domain.DTO.PaymentDTO;
import com.example.demo.domain.DTO.PaymentDTO;
import com.example.demo.domain.DTO.StripeDTO;
import com.example.demo.domain.entity.CashRecord;
import com.example.demo.domain.entity.GOrder;
import com.example.demo.domain.entity.RechargeActivity;
@ -69,5 +71,6 @@ public interface CashCollectionMapper {
@Param("auditId") Integer auditId,
@Param("version") Integer version);
// void updateByGoldCoinOrderCode(PaymentDTO paymentDTO);
void updateByGoldCoinOrderCodeByPayment(PaymentDTO paymentDTO);
void updateByGoldCoinOrderCodeByStripe(StripeDTO stripeDTO);
}

26
src/main/resources/cashMapper/CashCollectionMapper.xml

@ -301,4 +301,30 @@
AND status = 0
AND version = #{version}
</update>
<!--根据glodcoin订单号更新收款订单-->
<update id="updateByGoldCoinOrderCodeByPayment">
update cash_record_collection
SET
received_time=#{time},
payment_currency=#{currency},
received_currency=#{currency},
payment_amount=#{order_amount},
received_amount=#{net_amount},
handling_charge=#{charge},
order_no_status=0
where order_no=#{merchant_reference}
</update>
<!--根据glodcoin订单号更新收款订单-->
<update id="updateByGoldCoinOrderCodeByStripe">
update cash_record_collection
SET
received_time=#{availableOn},
payment_currency=#{chargeCurrency},
received_currency=#{currency},
payment_amount=#{amount},
received_amount=#{net},
handling_charge=#{fee},
order_no_status=0
where order_no=#{orderNo}
</update>
</mapper>
Loading…
Cancel
Save