Sfoglia il codice sorgente

feat: 红包优化

xdd 3 settimane fa
parent
commit
b78a526ee0

+ 3 - 6
fs-service/src/main/java/com/fs/his/service/impl/FsStorePaymentServiceImpl.java

@@ -661,12 +661,9 @@ public class FsStorePaymentServiceImpl implements IFsStorePaymentService {
             if (lock.isHeldByCurrentThread()) {
                 lock.unlock();
             }
-            RedPacketLog finalRedPacketLog = redPacketLog;
-            CompletableFuture.runAsync(()->{
-                if(finalRedPacketLog != null) {
-                    redPacketLogMapper.insert(finalRedPacketLog);
-                }
-            });
+            if(redPacketLog != null) {
+                redPacketLogMapper.insert(redPacketLog);
+            }
         }
     }