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

Commit f15d43de authored by 张国柄's avatar 张国柄

opt;

parent 6378838a
......@@ -424,7 +424,12 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
Integer operStock = storeMgtGoodsEditSkuParam.getOperStock();
if (null != operStock && operStock != 0) {
goblinRedisUtils.setSkuStock(null, skuId, updateSkuInfoVo.getSkuStock());
if (operStock > 0) {
goblinRedisUtils.incrSkuStock(null, skuId, operStock);
} else {
goblinRedisUtils.decrSkuStock(null, skuId, operStock);
}
// goblinRedisUtils.setSkuStock(null, skuId, updateSkuInfoVo.getSkuStock());
}
goblinRedisUtils.delGoodsSkuInfoVo(skuId);
......
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