From 18813ca83b94c807e35756a8a5f52effa5b99ba8 Mon Sep 17 00:00:00 2001 From: zepengdev <lzpsmith@outlook.com> Date: Tue, 17 Jun 2025 16:00:42 +0800 Subject: [PATCH] feat(product): 新增商品批量查询接口 --- oying-system/src/main/java/com/oying/modules/pc/product/converter/ProductLabelAssembler.java | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/oying-system/src/main/java/com/oying/modules/pc/product/converter/ProductLabelAssembler.java b/oying-system/src/main/java/com/oying/modules/pc/product/converter/ProductLabelAssembler.java new file mode 100644 index 0000000..5752275 --- /dev/null +++ b/oying-system/src/main/java/com/oying/modules/pc/product/converter/ProductLabelAssembler.java @@ -0,0 +1,26 @@ +package com.oying.modules.pc.product.converter; + +import cn.hutool.core.collection.ListUtil; +import com.oying.modules.pc.product.domain.ProductImage; +import com.oying.modules.pc.product.domain.ProductLabel; +import com.oying.modules.pc.product.domain.dto.ProductImageCreateRequest; +import com.oying.modules.pc.product.domain.dto.ProductImageUpdateRequest; +import com.oying.modules.pc.product.domain.dto.ProductLabelCreateRequest; +import com.oying.modules.pc.utils.ImageUtils; + +import java.util.List; +import java.util.Optional; + +public class ProductLabelAssembler { + + public static ProductLabel to(ProductLabelCreateRequest request) { + ProductLabel productLabel = new ProductLabel(); + productLabel.setProductId(request.getProductId()); + productLabel.setCategoryName(request.getCategoryName()); + productLabel.setLabelName(request.getLabelName()); + productLabel.setLabelValue(request.getLabelValue()); + productLabel.setUnit(request.getUnit()); + return productLabel; + } + +} -- Gitblit v1.9.3