商品属性功能完善
parent
75b24524ae
commit
603a2f20e8
|
@ -39,6 +39,11 @@ public class AttributeInfo extends BaseEntity {
|
||||||
@ApiModelProperty(name = "属性编号", value = "属性编号")
|
@ApiModelProperty(name = "属性编号", value = "属性编号")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
|
/** 属性编码 */
|
||||||
|
@Excel(name = "属性编码")
|
||||||
|
@ApiModelProperty(name = "属性编码", value = "属性编码", required = true)
|
||||||
|
private String code;
|
||||||
|
|
||||||
/** 属性名 */
|
/** 属性名 */
|
||||||
@Excel(name = "属性名")
|
@Excel(name = "属性名")
|
||||||
@ApiModelProperty(name = "属性名", value = "属性名", required = true)
|
@ApiModelProperty(name = "属性名", value = "属性名", required = true)
|
||||||
|
@ -51,6 +56,7 @@ public class AttributeInfo extends BaseEntity {
|
||||||
public static AttributeInfo queryBuild( AttributeInfoQueryReq attributeInfoQueryReq){
|
public static AttributeInfo queryBuild( AttributeInfoQueryReq attributeInfoQueryReq){
|
||||||
return AttributeInfo.builder()
|
return AttributeInfo.builder()
|
||||||
.name(attributeInfoQueryReq.getName())
|
.name(attributeInfoQueryReq.getName())
|
||||||
|
.code(attributeInfoQueryReq.getCode())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,6 +66,7 @@ public class AttributeInfo extends BaseEntity {
|
||||||
public static AttributeInfo saveBuild(AttributeInfoSaveReq attributeInfoSaveReq){
|
public static AttributeInfo saveBuild(AttributeInfoSaveReq attributeInfoSaveReq){
|
||||||
return AttributeInfo.builder()
|
return AttributeInfo.builder()
|
||||||
.name(attributeInfoSaveReq.getName())
|
.name(attributeInfoSaveReq.getName())
|
||||||
|
.code(attributeInfoSaveReq.getCode())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,6 +77,7 @@ public class AttributeInfo extends BaseEntity {
|
||||||
return AttributeInfo.builder()
|
return AttributeInfo.builder()
|
||||||
.id(id)
|
.id(id)
|
||||||
.name(attributeInfoEditReq.getName())
|
.name(attributeInfoEditReq.getName())
|
||||||
|
.code(attributeInfoEditReq.getCode())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,5 +33,8 @@ public class AttributeInfoEditReq extends BaseEntity {
|
||||||
@ApiModelProperty(name = "分组", value = "分组")
|
@ApiModelProperty(name = "分组", value = "分组")
|
||||||
private Long groupId;
|
private Long groupId;
|
||||||
|
|
||||||
|
@ApiModelProperty(name = "属性编码", value = "属性编码")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,5 +29,8 @@ public class AttributeInfoQueryReq extends BaseEntity {
|
||||||
@ApiModelProperty(name = "属性名", value = "属性名")
|
@ApiModelProperty(name = "属性名", value = "属性名")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
@ApiModelProperty(name = "属性编码", value = "属性编码")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,4 +35,7 @@ public class AttributeInfoSaveReq extends BaseEntity {
|
||||||
@ApiModelProperty(name = "属性名", value = "属性名", required = true)
|
@ApiModelProperty(name = "属性名", value = "属性名", required = true)
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
@ApiModelProperty(name = "属性编码", value = "属性编码")
|
||||||
|
private String code;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue