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

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

opt;

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