feat(product): 添加产品模型的运输属性和图片支持

- 在ProductModelController中添加groupName、shippingDimensions、weight和imageUrl字段赋值
- 在ProductModelMainParamsItemChildrenVO中新增imageUrl、groupName、shippingDimensions和weight属性
- 使产品模型参数支持运输相关信息和图片展示
This commit is contained in:
曹鹏飞 2026-05-25 11:21:58 +08:00
parent 64e8b481cc
commit e8c816e44a
2 changed files with 29 additions and 0 deletions

View File

@ -317,6 +317,10 @@ public class ProductModelController extends ControllerBase {
.setIndexName(indexName) .setIndexName(indexName)
.setBatchNumber(String.valueOf(parent.getId())) .setBatchNumber(String.valueOf(parent.getId()))
.setType(parent.getType()) .setType(parent.getType())
.setGroupName(parent.getGroupName())
.setShippingDimensions(parent.getShippingDimensions())
.setWeight(parent.getWeight())
.setImageUrl(parent.getImageUrl())
.setItems(childItems)); .setItems(childItems));
} }
vo.setItems(items); vo.setItems(items);

View File

@ -1,8 +1,11 @@
package com.nflg.mobilebroken.common.pojo.vo; package com.nflg.mobilebroken.common.pojo.vo;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data; import lombok.Data;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.util.List; import java.util.List;
@Data @Data
@ -24,5 +27,27 @@ public class ProductModelMainParamsItemChildrenVO {
*/ */
private Integer type; private Integer type;
/**
* 图片
*/
private String imageUrl;
/**
* 分组名称同组的可选配置替换
*/
private String groupName;
/**
* 运输尺寸
*/
private String shippingDimensions;
/**
* 重量
*/
private BigDecimal weight;
private List<ProductParamsItemVO> items; private List<ProductParamsItemVO> items;
} }