|
|
@@ -102,7 +102,9 @@ public class OrderService {
|
|
|
}
|
|
|
}
|
|
|
if (!collection.isOnShelf()) {
|
|
|
- throw new BusinessException("藏品已下架");
|
|
|
+ if (!collection.isScanCode()) {
|
|
|
+ throw new BusinessException("藏品已下架");
|
|
|
+ }
|
|
|
}
|
|
|
if (qty > collection.getStock()) {
|
|
|
throw new BusinessException("库存不足");
|