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

Commit 82edbbfa authored by 张国柄's avatar 张国柄

~BUG:SKU上架状态初始值设置更正;

~BUG:SKU调整后SPU详情缓存清楚;
parent c1699a43
...@@ -259,7 +259,7 @@ public class GoblinStoreMgtGoodsAddParam implements Serializable { ...@@ -259,7 +259,7 @@ public class GoblinStoreMgtGoodsAddParam implements Serializable {
skuInfoVo.setVirtualFlg(goodsInfoVo.getVirtualFlg()); skuInfoVo.setVirtualFlg(goodsInfoVo.getVirtualFlg());
skuInfoVo.setStatus("3");// 没有审核流程,默认通过 skuInfoVo.setStatus("3");// 没有审核流程,默认通过
// skuInfoVo.setReason(); // skuInfoVo.setReason();
skuInfoVo.setShelvesStatus("0"); skuInfoVo.setShelvesStatus(goodsInfoVo.getShelvesStatus());
skuInfoVo.setSkuAppear(StringUtils.isBlank(addSkuParam.getSkuAppear()) ? "0" : addSkuParam.getSkuAppear()); skuInfoVo.setSkuAppear(StringUtils.isBlank(addSkuParam.getSkuAppear()) ? "0" : addSkuParam.getSkuAppear());
skuInfoVo.setDelFlg("0"); skuInfoVo.setDelFlg("0");
// skuInfoVo.setShelvesAt(); // skuInfoVo.setShelvesAt();
......
...@@ -423,7 +423,7 @@ public class GoblinStoreMgtGoodsController { ...@@ -423,7 +423,7 @@ public class GoblinStoreMgtGoodsController {
|| storeMgtGoodsEditSkuParam.getPriceMember().compareTo(BigDecimal.ZERO) <= 0) { || storeMgtGoodsEditSkuParam.getPriceMember().compareTo(BigDecimal.ZERO) <= 0) {
return ResponseDto.failure(ErrorCode.HTTP_PARAM_ERROR.getCode(), "价格无效"); return ResponseDto.failure(ErrorCode.HTTP_PARAM_ERROR.getCode(), "价格无效");
} }
if (storeMgtGoodsEditSkuParam.getStock() <= 0) { if (null == storeMgtGoodsEditSkuParam.getStock() || storeMgtGoodsEditSkuParam.getStock() <= 0) {
return ResponseDto.failure(ErrorCode.HTTP_PARAM_ERROR.getCode(), "库存无效"); return ResponseDto.failure(ErrorCode.HTTP_PARAM_ERROR.getCode(), "库存无效");
} }
GoblinGoodsInfoVo goodsInfoVo = goblinRedisUtils.getMgtGoodsInfoVo(storeMgtGoodsEditSkuParam.getSpuId()); GoblinGoodsInfoVo goodsInfoVo = goblinRedisUtils.getMgtGoodsInfoVo(storeMgtGoodsEditSkuParam.getSpuId());
......
...@@ -482,6 +482,7 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi ...@@ -482,6 +482,7 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
goodsInfoVo.setUpdatedAt(now); goodsInfoVo.setUpdatedAt(now);
goblinMongoUtils.updateGoodsInfoVo(goodsInfoVo); goblinMongoUtils.updateGoodsInfoVo(goodsInfoVo);
goblinRedisUtils.delGoodsInfoVo(spuId);
updateGoodsObjs.add(new Object[]{priceGe, priceLe, uid, now, spuId}); updateGoodsObjs.add(new Object[]{priceGe, priceLe, uid, now, spuId});
} }
...@@ -558,6 +559,7 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi ...@@ -558,6 +559,7 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
goblinMongoUtils.updateGoodsInfoVo(goodsInfoVo); goblinMongoUtils.updateGoodsInfoVo(goodsInfoVo);
goblinRedisUtils.delGoodsSkuInfoVo(spuId); goblinRedisUtils.delGoodsSkuInfoVo(spuId);
goblinRedisUtils.delGoodsInfoVo(spuId);
goblinRedisUtils.setSkuStock(null, addSkuInfoVo.getSkuId(), addSkuInfoVo.getSkuStock()); goblinRedisUtils.setSkuStock(null, addSkuInfoVo.getSkuId(), addSkuInfoVo.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