尝试解决 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:
YunaiV 2019-03-07 21:30:46 +08:00
parent 4d1acf369e
commit 3f5be8e100
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ public class AdminsProductCategoryController {
// 创建商品分类 // 创建商品分类
CommonResult<ProductCategoryBO> result = productCategoryService.addProductCategory(AdminSecurityContextHolder.getContext().getAdminId(), productCategoryAddDTO); CommonResult<ProductCategoryBO> result = productCategoryService.addProductCategory(AdminSecurityContextHolder.getContext().getAdminId(), productCategoryAddDTO);
// 返回结果 // 返回结果
return ProductCategoryConvert.INSTANCE.convert(result); return ProductCategoryConvert.INSTANCE.convert2(result);
} }
@PostMapping("/update") @PostMapping("/update")

View File

@ -26,6 +26,6 @@ public interface ProductCategoryConvert {
AdminsProductCategoryTreeNodeVO convert(ProductCategoryBO category); AdminsProductCategoryTreeNodeVO convert(ProductCategoryBO category);
@Mappings({}) @Mappings({})
CommonResult<AdminsProductCategoryVO> convert(CommonResult<ProductCategoryBO> result); CommonResult<AdminsProductCategoryVO> convert2(CommonResult<ProductCategoryBO> result);
} }