|
@@ -217,7 +217,7 @@ public class CmsGoodsDonSkuServiceImpl extends ServiceImpl<GoodsDonSkuMapper,Goo
|
|
|
if (sku == null) {
|
|
if (sku == null) {
|
|
|
throw BusinessRuntimeException.getInstance("优惠加购规格不存在");
|
|
throw BusinessRuntimeException.getInstance("优惠加购规格不存在");
|
|
|
}
|
|
}
|
|
|
- if (sku.getStatus()) {
|
|
|
|
|
|
|
+ if (!sku.getStatus()) {
|
|
|
GoodsDon goodsDon = goodsDonMapper.selectById(sku.getGoodsId());
|
|
GoodsDon goodsDon = goodsDonMapper.selectById(sku.getGoodsId());
|
|
|
throw BusinessRuntimeException.getInstance("{0}优惠加购规格未上架", goodsDon.getTitle() + sku.getSpecVal());
|
|
throw BusinessRuntimeException.getInstance("{0}优惠加购规格未上架", goodsDon.getTitle() + sku.getSpecVal());
|
|
|
}
|
|
}
|