|
@@ -1091,7 +1091,7 @@ public class StoreOrderServiceImpl extends AbstractService<StoreOrder> implement
|
|
if (storeProduct.getIsDelete().equals(1)) {
|
|
if (storeProduct.getIsDelete().equals(1)) {
|
|
throw new ServiceException("购买的商品已删除");
|
|
throw new ServiceException("购买的商品已删除");
|
|
}
|
|
}
|
|
- if (!storeProduct.getIsShow().equals(0)) {
|
|
|
|
|
|
+ if (storeProduct.getIsShow().equals(0)) {
|
|
throw new ServiceException("购买的商品已下架");
|
|
throw new ServiceException("购买的商品已下架");
|
|
}
|
|
}
|
|
if (storeProduct.getStock().equals(0) || e.getPayNum() > storeProduct.getStock()) {
|
|
if (storeProduct.getStock().equals(0) || e.getPayNum() > storeProduct.getStock()) {
|