feat(product): 添加产品模型的运输属性和图片支持
- 在ProductModelController中添加groupName、shippingDimensions、weight和imageUrl字段赋值 - 在ProductModelMainParamsItemChildrenVO中新增imageUrl、groupName、shippingDimensions和weight属性 - 使产品模型参数支持运输相关信息和图片展示
This commit is contained in:
parent
64e8b481cc
commit
e8c816e44a
|
|
@ -317,6 +317,10 @@ public class ProductModelController extends ControllerBase {
|
|||
.setIndexName(indexName)
|
||||
.setBatchNumber(String.valueOf(parent.getId()))
|
||||
.setType(parent.getType())
|
||||
.setGroupName(parent.getGroupName())
|
||||
.setShippingDimensions(parent.getShippingDimensions())
|
||||
.setWeight(parent.getWeight())
|
||||
.setImageUrl(parent.getImageUrl())
|
||||
.setItems(childItems));
|
||||
}
|
||||
vo.setItems(items);
|
||||
|
|
|
|||
|
|
@ -1,8 +1,11 @@
|
|||
package com.nflg.mobilebroken.common.pojo.vo;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
|
|
@ -24,5 +27,27 @@ public class ProductModelMainParamsItemChildrenVO {
|
|||
*/
|
||||
private Integer type;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 图片
|
||||
*/
|
||||
private String imageUrl;
|
||||
|
||||
/**
|
||||
* 分组名称,同组的可选配置替换
|
||||
*/
|
||||
private String groupName;
|
||||
|
||||
/**
|
||||
* 运输尺寸
|
||||
*/
|
||||
private String shippingDimensions;
|
||||
|
||||
/**
|
||||
* 重量
|
||||
*/
|
||||
private BigDecimal weight;
|
||||
|
||||
private List<ProductParamsItemVO> items;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue