Browse Source

doDecrAndCreateOrder 去除事务注解

dinglan 2 years ago
parent
commit
ca66cbbe7d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/sw/service/impl/SnatchMaskServiceImpl.java

+ 1 - 1
src/main/java/com/sw/service/impl/SnatchMaskServiceImpl.java

@@ -156,7 +156,7 @@ public class SnatchMaskServiceImpl implements SnatchMaskService {
      * @param maskId
      * @param maskId
      */
      */
     @Override
     @Override
-    @Transactional
+//    @Transactional
     public void doDecrAndCreateOrder(Integer uid, Integer maskId) {
     public void doDecrAndCreateOrder(Integer uid, Integer maskId) {
         RLock lock = redissonClient.getLock("mask-" + maskId);
         RLock lock = redissonClient.getLock("mask-" + maskId);
         String threadName = Thread.currentThread().getName();
         String threadName = Thread.currentThread().getName();