商品SKU不可售或不存在
This commit is contained in:
@@ -137,12 +137,13 @@ public class UProductServiceImpl extends ServiceImpl<ProductMapper, Product> imp
|
||||
.eq(ProdSku::getIsGrounding, YesNoEnum.YES.value())
|
||||
.eq(ProdSku::getSpecInfo, specInfo)
|
||||
, ShopProductSkuInfoVo.class);
|
||||
if (data == null) {
|
||||
throw new CzgException("商品SKU不可售或不存在");
|
||||
}
|
||||
// throw new CzgException("商品SKU不可售或不存在");
|
||||
if (data != null) {
|
||||
data.setStockNumber(ObjUtil.defaultIfNull(product.getStockNumber(), 0));
|
||||
return data;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算是否在可售时间内
|
||||
|
||||
Reference in New Issue
Block a user