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

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

admin 修改 正在活动状态bug修改

parent f30c5b92
......@@ -144,7 +144,7 @@ public class GoblinZhengzaiServiceImpl implements IGoblinZhengzaiService {
//mongo
GoblinGoodsSkuInfoVo skuVo = redisUtils.getGoodsSkuInfoVo(item.getSkuId());
//判断库存相关
if(item.getStockMarketing()>0) {
if (item.getStockMarketing() > 0) {
int restStock = redisUtils.decrSkuStock(null, item.getSkuId(), item.getStockMarketing());
if (restStock < 0) {
errorNameList.add(skuVo.getName());
......@@ -289,6 +289,9 @@ public class GoblinZhengzaiServiceImpl implements IGoblinZhengzaiService {
bean.setDelFlag(1);
//库存处理
GoblinGoodsInfoVo marketVo = redisUtils.getGoodsInfoVo(marketSpuId);
if (marketVo == null) {
return ResponseDto.failure("商品不存在");
}
for (String marketSkuId : marketVo.getSkuIdList()) {
String skuId = marketSkuId.split(GoblinStatusConst.MarketPreStatus.MARKET_PRE_ZHENGZAI.getValue())[0];
//库存回滚
......
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