diff --git a/product/product-application/src/main/java/cn/iocoder/mall/product/application/controller/admins/AdminsProductCategoryController.java b/product/product-application/src/main/java/cn/iocoder/mall/product/application/controller/admins/AdminsProductCategoryController.java index 215ff3771..4adc3cb9c 100644 --- a/product/product-application/src/main/java/cn/iocoder/mall/product/application/controller/admins/AdminsProductCategoryController.java +++ b/product/product-application/src/main/java/cn/iocoder/mall/product/application/controller/admins/AdminsProductCategoryController.java @@ -77,7 +77,7 @@ public class AdminsProductCategoryController { // 创建商品分类 CommonResult result = productCategoryService.addProductCategory(AdminSecurityContextHolder.getContext().getAdminId(), productCategoryAddDTO); // 返回结果 - return ProductCategoryConvert.INSTANCE.convert(result); + return ProductCategoryConvert.INSTANCE.convert2(result); } @PostMapping("/update") diff --git a/product/product-application/src/main/java/cn/iocoder/mall/product/application/convert/ProductCategoryConvert.java b/product/product-application/src/main/java/cn/iocoder/mall/product/application/convert/ProductCategoryConvert.java index 91329900e..9966488a2 100644 --- a/product/product-application/src/main/java/cn/iocoder/mall/product/application/convert/ProductCategoryConvert.java +++ b/product/product-application/src/main/java/cn/iocoder/mall/product/application/convert/ProductCategoryConvert.java @@ -26,6 +26,6 @@ public interface ProductCategoryConvert { AdminsProductCategoryTreeNodeVO convert(ProductCategoryBO category); @Mappings({}) - CommonResult convert(CommonResult result); + CommonResult convert2(CommonResult result); } \ No newline at end of file