refactor(PmsSkuService.java): 删除多余log

This commit is contained in:
郝先瑞 2022-02-25 21:33:50 +08:00
parent 4604c2e6bc
commit dadcefe4ef

View File

@ -77,7 +77,6 @@ public class PmsSkuServiceImpl extends ServiceImpl<PmsSkuMapper, PmsSku> impleme
.eq(PmsSku::getId, lockedSku.getSkuId())
.apply("stock_num - locked_stock_num >= {0}", lockedSku.getCount())
);
log.error("锁定商品 {} 失败", lockedSku.getSkuId());
Assert.isTrue(lockResult, "锁定商品 {} 失败", lockedSku.getSkuId());
} finally {
// 释放锁