master:商品基本属性添加;
parent
a269eb09bd
commit
8d0a2a17ee
|
|
@ -134,14 +134,21 @@ public class StoreProdCreateVO {
|
|||
@NotBlank(message = "帮面材质不可为空!")
|
||||
@ApiModelProperty(value = "帮面材质", required = true)
|
||||
private String upperMaterial;
|
||||
@NotBlank(message = "内里材质不可为空!")
|
||||
@ApiModelProperty(value = "内里材质", required = true)
|
||||
private String liningMaterial;
|
||||
@NotBlank(message = "鞋垫材质不可为空!")
|
||||
@ApiModelProperty(value = "鞋垫材质", required = true)
|
||||
private String insoleMaterial;
|
||||
@ApiModelProperty(value = "上市季节年份")
|
||||
private String releaseYearSeason;
|
||||
@ApiModelProperty(value = "靴筒内里材质")
|
||||
private String shaftLiningMaterial;
|
||||
@ApiModelProperty(value = "靴筒面材质")
|
||||
private String shaftMaterial;
|
||||
@ApiModelProperty(value = "鞋面内里材质")
|
||||
private String shoeUpperLiningMaterial;
|
||||
@ApiModelProperty(value = "靴款品名")
|
||||
private String shoeStyleName;
|
||||
@ApiModelProperty(value = "筒高")
|
||||
private String shaftHeight;
|
||||
@ApiModelProperty(value = "后跟高")
|
||||
private String heelHeight;
|
||||
@ApiModelProperty(value = "跟底款式")
|
||||
|
|
|
|||
|
|
@ -97,12 +97,20 @@ public class StoreProdResVO {
|
|||
public static class StoreProdCateAttrVO {
|
||||
@ApiModelProperty(value = "帮面材质")
|
||||
private String upperMaterial;
|
||||
@ApiModelProperty(value = "内里材质")
|
||||
private String liningMaterial;
|
||||
@ApiModelProperty(value = "鞋垫材质")
|
||||
private String insoleMaterial;
|
||||
@ApiModelProperty(value = "上市季节年份")
|
||||
private String releaseYearSeason;
|
||||
@ApiModelProperty(value = "靴筒内里材质")
|
||||
private String shaftLiningMaterial;
|
||||
@ApiModelProperty(value = "靴筒面材质")
|
||||
private String shaftMaterial;
|
||||
@ApiModelProperty(value = "鞋面内里材质")
|
||||
private String shoeUpperLiningMaterial;
|
||||
@ApiModelProperty(value = "靴款品名")
|
||||
private String shoeStyleName;
|
||||
@ApiModelProperty(value = "筒高")
|
||||
private String shaftHeight;
|
||||
@ApiModelProperty(value = "后跟高")
|
||||
private String heelHeight;
|
||||
@ApiModelProperty(value = "跟底款式")
|
||||
|
|
|
|||
|
|
@ -318,7 +318,14 @@ public class Constants
|
|||
public static final BigDecimal ALI_SERVICE_FEE_RATE = BigDecimal.valueOf(0.006);
|
||||
|
||||
public static final String UPPER_MATERIAL = "upperMaterial";
|
||||
public static final String LINING_MATERIAL = "liningMaterial";
|
||||
public static final String SHAFT_LINING_MATERIAL = "shaftLiningMaterial";
|
||||
public static final String SHAFT_MATERIAL = "shaftMaterial";
|
||||
public static final String SHOE_UPPER_LINING_MATERIAL = "shoeUpperLiningMaterial";
|
||||
public static final String SHOE_STYLE_NAME = "shoeStyleName";
|
||||
public static final String SHAFT_HEIGHT = "shaftHeight";
|
||||
|
||||
|
||||
|
||||
public static final String INSOLE_MATERIAL = "insoleMaterial";
|
||||
public static final String RELEASE_YEAR_SEASON = "releaseYearSeason";
|
||||
public static final String HEEL_HEIGHT = "heelHeight";
|
||||
|
|
@ -344,7 +351,11 @@ public class Constants
|
|||
*/
|
||||
public static final Map<String, String> CATE_RELATE_MAP = new ConcurrentHashMap<String, String>() {{
|
||||
put(UPPER_MATERIAL, "帮面材质");
|
||||
put(LINING_MATERIAL, "内里材质");
|
||||
put(SHAFT_LINING_MATERIAL, "靴筒内里材质");
|
||||
put(SHAFT_MATERIAL, "靴筒面材质");
|
||||
put(SHOE_UPPER_LINING_MATERIAL, "鞋面内里材质");
|
||||
put(SHOE_STYLE_NAME, "靴款品名");
|
||||
put(SHAFT_HEIGHT, "筒高");
|
||||
put(INSOLE_MATERIAL, "鞋垫材质");
|
||||
put(RELEASE_YEAR_SEASON, "上市季节年份");
|
||||
put(HEEL_HEIGHT, "后跟高");
|
||||
|
|
|
|||
|
|
@ -37,9 +37,25 @@ public class StoreProductCategoryAttribute extends XktBaseEntity {
|
|||
*/
|
||||
private String upperMaterial;
|
||||
/**
|
||||
* 内里材质
|
||||
* 靴筒内里材质
|
||||
*/
|
||||
private String liningMaterial;
|
||||
private String shaftLiningMaterial;
|
||||
/**
|
||||
* 靴筒面材质
|
||||
*/
|
||||
private String shaftMaterial;
|
||||
/**
|
||||
* 鞋面内里材质
|
||||
*/
|
||||
private String shoeUpperLiningMaterial;
|
||||
/**
|
||||
* 靴款品名
|
||||
*/
|
||||
private String shoeStyleName;
|
||||
/**
|
||||
* 筒高
|
||||
*/
|
||||
private String shaftHeight;
|
||||
/**
|
||||
* 鞋垫材质
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -15,12 +15,20 @@ public class StoreProdCateAttrDTO {
|
|||
|
||||
@ApiModelProperty(value = "帮面材质")
|
||||
private String upperMaterial;
|
||||
@ApiModelProperty(value = "内里材质")
|
||||
private String liningMaterial;
|
||||
@ApiModelProperty(value = "鞋垫材质")
|
||||
private String insoleMaterial;
|
||||
@ApiModelProperty(value = "上市季节年份")
|
||||
private String releaseYearSeason;
|
||||
@ApiModelProperty(value = "靴筒内里材质")
|
||||
private String shaftLiningMaterial;
|
||||
@ApiModelProperty(value = "靴筒面材质")
|
||||
private String shaftMaterial;
|
||||
@ApiModelProperty(value = "鞋面内里材质")
|
||||
private String shoeUpperLiningMaterial;
|
||||
@ApiModelProperty(value = "靴款品名")
|
||||
private String shoeStyleName;
|
||||
@ApiModelProperty(value = "筒高")
|
||||
private String shaftHeight;
|
||||
@ApiModelProperty(value = "后跟高")
|
||||
private String heelHeight;
|
||||
@ApiModelProperty(value = "跟底款式")
|
||||
|
|
|
|||
|
|
@ -1375,9 +1375,25 @@ public class StoreProductServiceImpl implements IStoreProductService {
|
|||
if (ObjectUtils.isNotEmpty(cateAttr.getUpperMaterial())) {
|
||||
cateAttrMap.put(Constants.CATE_RELATE_MAP.get(UPPER_MATERIAL), cateAttr.getUpperMaterial());
|
||||
}
|
||||
// 2. 内里材质
|
||||
if (ObjectUtils.isNotEmpty(cateAttr.getLiningMaterial())) {
|
||||
cateAttrMap.put(Constants.CATE_RELATE_MAP.get(LINING_MATERIAL), cateAttr.getLiningMaterial());
|
||||
// 2. 靴筒内里材质
|
||||
if (ObjectUtils.isNotEmpty(cateAttr.getShaftLiningMaterial())) {
|
||||
cateAttrMap.put(Constants.CATE_RELATE_MAP.get(SHAFT_LINING_MATERIAL), cateAttr.getShaftLiningMaterial());
|
||||
}
|
||||
// 靴筒面材质
|
||||
if (ObjectUtils.isNotEmpty(cateAttr.getShaftMaterial())) {
|
||||
cateAttrMap.put(Constants.CATE_RELATE_MAP.get(SHAFT_MATERIAL), cateAttr.getShaftMaterial());
|
||||
}
|
||||
// 鞋面内里材质
|
||||
if (ObjectUtils.isNotEmpty(cateAttr.getShoeUpperLiningMaterial())) {
|
||||
cateAttrMap.put(Constants.CATE_RELATE_MAP.get(SHOE_UPPER_LINING_MATERIAL), cateAttr.getShoeUpperLiningMaterial());
|
||||
}
|
||||
// 靴款品名
|
||||
if (ObjectUtils.isNotEmpty(cateAttr.getShoeStyleName())) {
|
||||
cateAttrMap.put(Constants.CATE_RELATE_MAP.get(SHOE_STYLE_NAME), cateAttr.getShoeStyleName());
|
||||
}
|
||||
// 筒高
|
||||
if (ObjectUtils.isNotEmpty(cateAttr.getShaftHeight())) {
|
||||
cateAttrMap.put(Constants.CATE_RELATE_MAP.get(SHAFT_HEIGHT), cateAttr.getShaftHeight());
|
||||
}
|
||||
// 3. 鞋垫材质
|
||||
if (ObjectUtils.isNotEmpty(cateAttr.getInsoleMaterial())) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue