Merge remote-tracking branch 'origin/master'

This commit is contained in:
sin 2019-03-07 21:56:25 +08:00
commit f628bac565
5 changed files with 10 additions and 5 deletions

1
build_order.sh Normal file
View File

@ -0,0 +1 @@
mvn clean package -pl order/order-application -am -DskipTests

1
build_product.sh Normal file
View File

@ -0,0 +1 @@
mvn clean package -pl product/product-application -am -DskipTests

View File

@ -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")

View File

@ -19,10 +19,13 @@ public interface ProductCategoryConvert {
@Mappings({})
UsersProductCategoryVO convertToVO(ProductCategoryBO category);
@Mappings({})
List<UsersProductCategoryVO> convertToVO(List<ProductCategoryBO> categoryList);
@Mappings({})
AdminsProductCategoryTreeNodeVO convert(ProductCategoryBO category);
CommonResult<AdminsProductCategoryVO> convert(CommonResult<ProductCategoryBO> result);
@Mappings({})
CommonResult<AdminsProductCategoryVO> convert2(CommonResult<ProductCategoryBO> result);
}

View File

@ -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);