尝试解决 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
4d1acf369e
commit
3f5be8e100
@ -77,7 +77,7 @@ public class AdminsProductCategoryController {
|
||||
// 创建商品分类
|
||||
CommonResult<ProductCategoryBO> result = productCategoryService.addProductCategory(AdminSecurityContextHolder.getContext().getAdminId(), productCategoryAddDTO);
|
||||
// 返回结果
|
||||
return ProductCategoryConvert.INSTANCE.convert(result);
|
||||
return ProductCategoryConvert.INSTANCE.convert2(result);
|
||||
}
|
||||
|
||||
@PostMapping("/update")
|
||||
|
@ -26,6 +26,6 @@ public interface ProductCategoryConvert {
|
||||
AdminsProductCategoryTreeNodeVO convert(ProductCategoryBO category);
|
||||
|
||||
@Mappings({})
|
||||
CommonResult<AdminsProductCategoryVO> convert(CommonResult<ProductCategoryBO> result);
|
||||
CommonResult<AdminsProductCategoryVO> convert2(CommonResult<ProductCategoryBO> result);
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user