记得上下班打卡 | git大法好,push需谨慎

Commit f11b2efb authored by zhengfuxin's avatar zhengfuxin

修改bug

parent a34dbb3a
......@@ -1154,7 +1154,8 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
if(null!=goblinGoodsSkuInfoVo){
BeanUtils.copyProperties(goblinGoodsSkuInfoVo,goblinGoodsSkuShopCartInfoVo);
//查看是否有库存
int stock=goblinRedisUtils.getSkuStock(null,goblinGoodsSkuInfoVo.getSkuId());
String pre = GoblinStatusConst.MarketPreStatus.getPre(goblinGoodsSkuInfoVo.getSpuId());
int stock=goblinRedisUtils.getSkuStock(pre,goblinGoodsSkuInfoVo.getSkuId());
if(stock<=0){
goblinGoodsSkuShopCartInfoVo.setStockLess(true);
}else {goblinGoodsSkuShopCartInfoVo.setStockLess(false);}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment