陶杰
2024-08-29 b2b82c1308fd2cf71e118ab8df8258f8160f010a
src/main/java/com/mzl/flower/service/point/PointGoodsService.java
@@ -75,4 +75,15 @@
        return dto;
    }
    public void updateStatus(Long id, String status){
        PointGoods p = pointGoodsMapper.selectById(id);
        if(p == null){
            throw new ValidationException("商品未找到");
        }
        p.setStatus(status);
        p.update(SecurityUtils.getUserId());
        pointGoodsMapper.updateById(p);
    }
}