Эх сурвалжийг харах

fix: ProductService 添加 getById 方法,SupplierProductController 编译错误

iwt 2 сар өмнө
parent
commit
22c279c342

+ 4 - 0
cfc-backend/src/main/java/com/etotem/cfc/service/ProductService.java

@@ -39,6 +39,10 @@ public class ProductService {
     @Resource
     private PpointService ppointService;
 
+    public Product getById(Long id) {
+        return productMapper.selectById(id);
+    }
+
     public Result<Map<String, Object>> list(ProductListQueryDTO query, Long userId) {
         Page<Product> page = new Page<>(query.getPage(), query.getSize());
         LambdaQueryWrapper<Product> wrapper = new LambdaQueryWrapper<Product>()