|
|
@@ -493,7 +493,7 @@ public class CollectionService {
|
|
|
|
|
|
if (winItem != null) {
|
|
|
operations.putIfAbsent(winItem.getCollectionId() + "", winItem.getStock());
|
|
|
- int stock = Math.toIntExact(operations.increment(winItem.getCollectionId(), -1));
|
|
|
+ int stock = Math.toIntExact(operations.increment(winItem.getCollectionId() + "", -1));
|
|
|
if (stock < 0) {
|
|
|
operations.increment(winItem.getCollectionId(), 1);
|
|
|
winItem = null;
|