Browse Source

feat: 红包优化

(cherry picked from commit b78a526ee001a3e9775a651bfa0231d609b4334a)
xdd 3 weeks ago
parent
commit
f00b78f2bf

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

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