瀏覽代碼

供应商价格问题处理

yzc 1 年之前
父節點
當前提交
3c81cf4295

+ 20 - 0
hx-supply/src/main/java/com/fjhx/supply/entity/supplier/vo/SupplierPriceVo.java

@@ -4,6 +4,8 @@ import com.fjhx.supply.entity.supplier.po.SupplierPrice;
 import lombok.Getter;
 import lombok.Setter;
 
+import java.math.BigDecimal;
+
 /**
  * 供应商价格列表查询返回值实体
  *
@@ -67,4 +69,22 @@ public class SupplierPriceVo extends SupplierPrice {
 
     private String companyName;
 
+    private BigDecimal productLength;
+    private BigDecimal productWidth;
+    private BigDecimal productHeight;
+    private String productColor;
+
+    /**
+     * 净重
+     */
+    private BigDecimal productNetWeight;
+    /**
+     * 正面纹路
+     */
+    private String productFrontalTexture;
+    /**
+     * 反面纹路
+     */
+    private String productReverseTexture;
+
 }

+ 10 - 0
hx-supply/src/main/java/com/fjhx/supply/service/supplier/impl/SupplierPriceServiceImpl.java

@@ -90,6 +90,16 @@ public class SupplierPriceServiceImpl extends ServiceImpl<SupplierPriceMapper, S
             item.setProductName(product.getName());
             item.setProductSpec(product.getSpec());
             item.setProductUnit(product.getUnit());
+
+            item.setProductName(product.getName());
+            item.setProductLength(product.getLength());
+            item.setProductWidth(product.getWidth());
+            item.setProductHeight(product.getHeight());
+            item.setProductColor(product.getColor());
+
+            item.setProductNetWeight(product.getNetWeight());
+            item.setProductFrontalTexture(product.getFrontalTexture());
+            item.setProductReverseTexture(product.getReverseTexture());
         });
 
         productClassifyService.attributeAssign(records, SupplierPriceVo::getProductClassifyId, (item, productClassify) -> {