修改物流模板,清除商品缓存

This commit is contained in:
chc 2023-03-01 17:09:20 +08:00
parent 61104b9cd3
commit 352a19b91c

View File

@ -427,6 +427,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
LambdaUpdateWrapper<Goods> lambdaUpdateWrapper = Wrappers.lambdaUpdate();
lambdaUpdateWrapper.set(Goods::getTemplateId, templateId);
lambdaUpdateWrapper.in(Goods::getId, goodsIds);
cache.multiDel(goodsIds);
return this.update(lambdaUpdateWrapper);
}