提交 f628bac5 authored 作者: sin's avatar sin

Merge remote-tracking branch 'origin/master'

mvn clean package -pl order/order-application -am -DskipTests
\ No newline at end of file
mvn clean package -pl product/product-application -am -DskipTests
\ No newline at end of file
...@@ -77,7 +77,7 @@ public class AdminsProductCategoryController { ...@@ -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")
......
...@@ -19,10 +19,13 @@ public interface ProductCategoryConvert { ...@@ -19,10 +19,13 @@ public interface ProductCategoryConvert {
@Mappings({}) @Mappings({})
UsersProductCategoryVO convertToVO(ProductCategoryBO category); UsersProductCategoryVO convertToVO(ProductCategoryBO category);
@Mappings({})
List<UsersProductCategoryVO> convertToVO(List<ProductCategoryBO> categoryList); List<UsersProductCategoryVO> convertToVO(List<ProductCategoryBO> categoryList);
@Mappings({})
AdminsProductCategoryTreeNodeVO convert(ProductCategoryBO category); AdminsProductCategoryTreeNodeVO convert(ProductCategoryBO category);
CommonResult<AdminsProductCategoryVO> convert(CommonResult<ProductCategoryBO> result); @Mappings({})
CommonResult<AdminsProductCategoryVO> convert2(CommonResult<ProductCategoryBO> result);
} }
\ No newline at end of file
...@@ -30,9 +30,9 @@ public interface ProductAttrConvert { ...@@ -30,9 +30,9 @@ public interface ProductAttrConvert {
@Mappings({}) @Mappings({})
List<ProductAttrSimpleBO> convert3(List<ProductAttrDO> attrs); List<ProductAttrSimpleBO> convert3(List<ProductAttrDO> attrs);
// @Mappings({}) @Mappings({})
// ProductAttrValueSimpleBO convert3(ProductAttrValueDO value); ProductAttrValueSimpleBO convert3(ProductAttrValueDO value); // 保证 convert4 能够映射到这个方法
//
@Mappings({}) @Mappings({})
List<ProductAttrValueSimpleBO> convert4(List<ProductAttrValueDO> values); List<ProductAttrValueSimpleBO> convert4(List<ProductAttrValueDO> values);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论