From 3f5be8e100d48bdcc6bec1a7bfe7d9947251df91 Mon Sep 17 00:00:00 2001 From: YunaiV <> Date: Thu, 7 Mar 2019 21:30:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E8=A7=A3=E5=86=B3=20jenkins?= =?UTF-8?q?=20=E5=9C=A8=20jdk8=20=E4=B8=8B=E7=BC=96=E8=AF=91=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ERROR] /home/runner/.jenkins/workspace/order-server/product/product-service-impl/src/main/java/cn/iocoder/mall/product/convert/ProductAttrConvert.java:[37,36] Ambiguous mapping methods found for mapping collection element to java.lang.Object: cn.iocoder.mall.product.api.bo.ProductAttrValueDetailBO convert(cn.iocoder.mall.product.dataobject.ProductAttrValueDO value), cn.iocoder.mall.product.api.bo.ProductAttrValueBO convert2(cn.iocoder.mall.product.dataobject.ProductAttrValueDO productAttrValueDO). --- .../controller/admins/AdminsProductCategoryController.java | 2 +- .../product/application/convert/ProductCategoryConvert.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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