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

Commit 6ee55dd6 authored by 张国柄's avatar 张国柄

Merge remote-tracking branch 'origin/dev_goblin' into dev_goblin

parents fb0cc843 f11b2efb
......@@ -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