|
@@ -304,6 +304,9 @@ public class FsIntegralOrderServiceImpl implements IFsIntegralOrderService
|
|
|
if (Objects.isNull(integralGoods)) {
|
|
if (Objects.isNull(integralGoods)) {
|
|
|
return R.error("商品不存在");
|
|
return R.error("商品不存在");
|
|
|
}
|
|
}
|
|
|
|
|
+ if (integralGoods.getStatus()!=1L) {
|
|
|
|
|
+ return R.error("商品已停用 请重新选择商品");
|
|
|
|
|
+ }
|
|
|
if(integralGoods.getStock()<=0L){
|
|
if(integralGoods.getStock()<=0L){
|
|
|
return R.error("库存不足");
|
|
return R.error("库存不足");
|
|
|
}
|
|
}
|