尝试解决 jenkins 在 jdk8 下编译时,报错
[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).
This commit is contained in:
parent
03f6b2b82c
commit
573671be83
|
@ -0,0 +1 @@
|
|||
mvn clean package -pl order/order-application -am -DskipTests
|
|
@ -0,0 +1 @@
|
|||
mvn clean package -pl product/product-application -am -DskipTests
|
|
@ -30,9 +30,9 @@ public interface ProductAttrConvert {
|
|||
@Mappings({})
|
||||
List<ProductAttrSimpleBO> convert3(List<ProductAttrDO> attrs);
|
||||
|
||||
// @Mappings({})
|
||||
// ProductAttrValueSimpleBO convert3(ProductAttrValueDO value);
|
||||
//
|
||||
@Mappings({})
|
||||
ProductAttrValueSimpleBO convert3(ProductAttrValueDO value); // 保证 convert4 能够映射到这个方法
|
||||
|
||||
@Mappings({})
|
||||
List<ProductAttrValueSimpleBO> convert4(List<ProductAttrValueDO> values);
|
||||
|
||||
|
|
Loading…
Reference in New Issue