From 573671be83ea946cc2a083cce42aa1a90d4b246c Mon Sep 17 00:00:00 2001 From: YunaiV <> Date: Thu, 7 Mar 2019 21:25:05 +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). --- build_order.sh | 1 + build_product.sh | 1 + .../cn/iocoder/mall/product/convert/ProductAttrConvert.java | 6 +++--- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 build_order.sh create mode 100644 build_product.sh diff --git a/build_order.sh b/build_order.sh new file mode 100644 index 000000000..dcefb1672 --- /dev/null +++ b/build_order.sh @@ -0,0 +1 @@ +mvn clean package -pl order/order-application -am -DskipTests \ No newline at end of file diff --git a/build_product.sh b/build_product.sh new file mode 100644 index 000000000..d8762854f --- /dev/null +++ b/build_product.sh @@ -0,0 +1 @@ +mvn clean package -pl product/product-application -am -DskipTests \ No newline at end of file diff --git a/product/product-service-impl/src/main/java/cn/iocoder/mall/product/convert/ProductAttrConvert.java b/product/product-service-impl/src/main/java/cn/iocoder/mall/product/convert/ProductAttrConvert.java index 3216268f9..fa032b8b9 100644 --- a/product/product-service-impl/src/main/java/cn/iocoder/mall/product/convert/ProductAttrConvert.java +++ b/product/product-service-impl/src/main/java/cn/iocoder/mall/product/convert/ProductAttrConvert.java @@ -30,9 +30,9 @@ public interface ProductAttrConvert { @Mappings({}) List convert3(List attrs); -// @Mappings({}) -// ProductAttrValueSimpleBO convert3(ProductAttrValueDO value); -// + @Mappings({}) + ProductAttrValueSimpleBO convert3(ProductAttrValueDO value); // 保证 convert4 能够映射到这个方法 + @Mappings({}) List convert4(List values);