mitao
2024-07-08 022a7ff7abf82cd2546e18071ade5228b4e2339f
meiya-admin/src/main/java/com/sinata/modular/mall/service/impl/MallGoodsServiceImpl.java
@@ -103,9 +103,10 @@
    @Override
    @Transactional(rollbackFor = Exception.class)
    public void updateMallGoods(MallGoods mallGoods) {
        MallGoods goods = this.selectById(mallGoods.getId());
        if (mallGoods != null && mallGoods.getId() != null) {
            // 添加后台消息通知
            addSystemNotice(this.selectById(mallGoods.getId()), mallGoods);
            addSystemNotice(goods, mallGoods);
        }
        // 库存求和
@@ -135,7 +136,6 @@
                    .peek(sku -> {
                        sku.setGoodsId(mallGoods.getId());
                        sku.setPrice(mallGoods.getPrice());
                        sku.setPriceSale(mallGoods.getPriceSale());
                    })
                    .map(MallGoodsSku::getId)
                    .filter(Objects::nonNull)