9 changed files with 202 additions and 35 deletions
@ -0,0 +1,14 @@ |
|||||
|
package com.qs.serve.modules.goods.common; |
||||
|
|
||||
|
/** |
||||
|
* @author YenHex |
||||
|
* @since 2022/10/26 |
||||
|
*/ |
||||
|
public class GoodsConst { |
||||
|
|
||||
|
/** |
||||
|
* 规格数量 |
||||
|
*/ |
||||
|
public static final Integer SPEC_COUNT = 3; |
||||
|
|
||||
|
} |
@ -0,0 +1,72 @@ |
|||||
|
package com.qs.serve.modules.goods.entity.bo; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.*; |
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import lombok.Data; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
|
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
import java.time.LocalDateTime; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* sku 实体类 |
||||
|
* @author YenHex |
||||
|
* @since 2022-10-09 |
||||
|
*/ |
||||
|
@Data |
||||
|
@TableName("goods_sku") |
||||
|
public class GoodsSkuBo implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** sku编码 */ |
||||
|
@Length(max = 32,message = "sku编码长度不能超过32字") |
||||
|
private String skuCode; |
||||
|
|
||||
|
/** 商品Id */ |
||||
|
@NotNull(message = "商品Id不能为空") |
||||
|
private Long spuId; |
||||
|
|
||||
|
/** 图片 */ |
||||
|
private String picUrl; |
||||
|
|
||||
|
/** 销售价格 */ |
||||
|
private BigDecimal salesPrice; |
||||
|
|
||||
|
/** 市场价 */ |
||||
|
private BigDecimal marketPrice; |
||||
|
|
||||
|
/** 成本价 */ |
||||
|
private BigDecimal costPrice; |
||||
|
|
||||
|
/** 规格值 */ |
||||
|
private String specInfos; |
||||
|
|
||||
|
/** 重量(kg) */ |
||||
|
@NotNull(message = "重量(kg)不能为空") |
||||
|
private BigDecimal weight; |
||||
|
|
||||
|
/** 体积(m³) */ |
||||
|
@NotNull(message = "体积(m³)不能为空") |
||||
|
private BigDecimal volume; |
||||
|
|
||||
|
/** 最低起批数(0->不限制) */ |
||||
|
private Integer minPurchase; |
||||
|
|
||||
|
/** 版本号 */ |
||||
|
private Integer version; |
||||
|
|
||||
|
/** 备注 */ |
||||
|
private Integer remark; |
||||
|
|
||||
|
/** 规格值Ids(更新操作可为空) */ |
||||
|
private List<Long> specValueIds; |
||||
|
|
||||
|
} |
||||
|
|
Loading…
Reference in new issue