diff --git a/src/main/java/com/example/demo/mapper/cash/CashCollectionMapper.java b/src/main/java/com/example/demo/mapper/cash/CashCollectionMapper.java
index c02002f..0474632 100644
--- a/src/main/java/com/example/demo/mapper/cash/CashCollectionMapper.java
+++ b/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);
}
diff --git a/src/main/resources/cashMapper/CashCollectionMapper.xml b/src/main/resources/cashMapper/CashCollectionMapper.xml
index e021a96..4861bd2 100644
--- a/src/main/resources/cashMapper/CashCollectionMapper.xml
+++ b/src/main/resources/cashMapper/CashCollectionMapper.xml
@@ -301,4 +301,30 @@
AND status = 0
AND version = #{version}
+
+
+ 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 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}
+
\ No newline at end of file