Переглянути джерело

fix: keep OMG collision retries in outer transaction

qmj 2 тижнів тому
батько
коміт
f0849b5a0d

+ 0 - 2
ruoyi-system/src/main/java/com/ruoyi/system/omgpay/service/impl/OmgPaymentAttemptServiceImpl.java

@@ -8,7 +8,6 @@ import com.ruoyi.system.omgpay.domain.OmgPaymentOrderSnapshot;
 import com.ruoyi.system.omgpay.mapper.OmgPaymentAttemptMapper;
 import com.ruoyi.system.omgpay.service.IOmgPaymentAttemptService;
 import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
 
 import java.util.Date;
 
@@ -39,7 +38,6 @@ public class OmgPaymentAttemptServiceImpl implements IOmgPaymentAttemptService {
     }
 
     @Override
-    @Transactional(rollbackFor = Exception.class)
     public OmgPaymentAttempt createCreated(String ddId, String merchantTradeNo, Long storeId,
                                            String merchantId, Integer amount) {
         validateCreatedFacts(ddId, merchantTradeNo, storeId, merchantId, amount);