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

Commit c4cf6d3a authored by 胡佳晨's avatar 胡佳晨

正咋商铺配置 删除接口修改

parent c471ce17
......@@ -144,11 +144,13 @@ public class GoblinZhengzaiServiceImpl implements IGoblinZhengzaiService {
//mongo
GoblinGoodsSkuInfoVo skuVo = redisUtils.getGoodsSkuInfoVo(item.getSkuId());
//判断库存相关
int restStock = redisUtils.decrSkuStock(null, item.getSkuId(), item.getStockMarketing());
if (restStock < 0) {
errorNameList.add(skuVo.getName());
redisUtils.incrSkuStock(null, item.getSkuId(), item.getStockMarketing());
continue;
if(item.getStockMarketing()>0) {
int restStock = redisUtils.decrSkuStock(null, item.getSkuId(), item.getStockMarketing());
if (restStock < 0) {
errorNameList.add(skuVo.getName());
redisUtils.incrSkuStock(null, item.getSkuId(), item.getStockMarketing());
continue;
}
}
redisUtils.setSkuStock(GoblinStatusConst.MarketPreStatus.MARKET_PRE_ZHENGZAI.getValue(), item.getSkuId(), item.getStockMarketing());
skuVo.setSpuId(marketSpuId);
......
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