|
@@ -251,6 +251,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
orderGoods.setRebuy(1);
|
|
orderGoods.setRebuy(1);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ boolean orderGoodsRs = iOrderGoodsService.save(orderGoods);
|
|
|
String requestId = IdUtil.simpleUUID();
|
|
String requestId = IdUtil.simpleUUID();
|
|
|
RedisLockEntity redisLockEntity = new RedisLockEntity();
|
|
RedisLockEntity redisLockEntity = new RedisLockEntity();
|
|
|
redisLockEntity.setLockKey(RedisLockEntity.KEY_LOCK_GRADE);
|
|
redisLockEntity.setLockKey(RedisLockEntity.KEY_LOCK_GRADE);
|
|
@@ -261,7 +262,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
- boolean orderGoodsRs = iOrderGoodsService.save(orderGoods);
|
|
|
|
|
|
|
+
|
|
|
if(!canRepeatBuy&&goods.getGoodsType()!=3&&goods.getGoodsType()!=4){
|
|
if(!canRepeatBuy&&goods.getGoodsType()!=3&&goods.getGoodsType()!=4){
|
|
|
this.checkBuyGoods(g.getGoodsId(),bo.getUserId());
|
|
this.checkBuyGoods(g.getGoodsId(),bo.getUserId());
|
|
|
}
|
|
}
|
|
@@ -343,6 +344,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
orderGoods.setRebuy(1);
|
|
orderGoods.setRebuy(1);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ boolean orderGoodsRs = iOrderGoodsService.save(orderGoods);
|
|
|
String requestId = IdUtil.simpleUUID();
|
|
String requestId = IdUtil.simpleUUID();
|
|
|
RedisLockEntity redisLockEntity = new RedisLockEntity();
|
|
RedisLockEntity redisLockEntity = new RedisLockEntity();
|
|
|
redisLockEntity.setLockKey(RedisLockEntity.KEY_LOCK_GRADE);
|
|
redisLockEntity.setLockKey(RedisLockEntity.KEY_LOCK_GRADE);
|
|
@@ -352,7 +354,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
redisCache.unlockLua(redisLockEntity);
|
|
redisCache.unlockLua(redisLockEntity);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- boolean orderGoodsRs = iOrderGoodsService.save(orderGoods);
|
|
|
|
|
|
|
+
|
|
|
if(!canRepeatBuy&&goods.getGoodsType()!=3&&goods.getGoodsType()!=4){
|
|
if(!canRepeatBuy&&goods.getGoodsType()!=3&&goods.getGoodsType()!=4){
|
|
|
this.checkBuyGoods(g.getGoodsId(),bo.getUserId());
|
|
this.checkBuyGoods(g.getGoodsId(),bo.getUserId());
|
|
|
}
|
|
}
|