4 changed files with 195 additions and 0 deletions
@ -0,0 +1,94 @@ |
|||
package com.qs.serve.modules.goods.entity.vo; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import jdk.nashorn.internal.ir.annotations.Ignore; |
|||
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 GoodsSkuExportVo implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** PK */ |
|||
@TableId(type = IdType.AUTO) |
|||
private Long id; |
|||
|
|||
/** sku编码 */ |
|||
@Length(max = 32,message = "sku编码长度不能超过32字") |
|||
private String skuCode; |
|||
|
|||
private String skuName; |
|||
|
|||
/** 商品Id */ |
|||
@NotNull(message = "商品Id不能为空") |
|||
private Long spuId; |
|||
|
|||
/** 销售价格 */ |
|||
private BigDecimal salesPrice; |
|||
|
|||
/** 市场价 */ |
|||
private BigDecimal marketPrice; |
|||
|
|||
/** 成本价 */ |
|||
private BigDecimal costPrice; |
|||
|
|||
/** 库存 */ |
|||
@NotNull(message = "库存不能为空") |
|||
private Integer stock; |
|||
|
|||
/** 重量(kg) */ |
|||
@NotNull(message = "重量(kg)不能为空") |
|||
private BigDecimal weight; |
|||
|
|||
/** 体积(m³) */ |
|||
@NotNull(message = "体积(m³)不能为空") |
|||
private BigDecimal volume; |
|||
|
|||
/** 最低起批数(0->不限制) */ |
|||
private Integer minPurchase; |
|||
|
|||
/** 投放费用 1、是;0否 */ |
|||
private Integer enable; |
|||
|
|||
/** 是否可以下单 1、是;0否 */ |
|||
private Integer orderFlag; |
|||
|
|||
private Integer specialFlag; |
|||
|
|||
/** 备注 */ |
|||
private String remark; |
|||
|
|||
/** 产地 */ |
|||
@NotNull(message = "产地不能为空") |
|||
private String belong; |
|||
|
|||
/** 包装 */ |
|||
@NotNull(message = "包装不能为空") |
|||
private String wrapVal; |
|||
|
|||
/** 口味 */ |
|||
@NotNull(message = "口味不能为空") |
|||
private String tasteVal; |
|||
|
|||
/** 可投放费用标识 */ |
|||
private Integer costFlag; |
|||
|
|||
} |
|||
|
@ -0,0 +1,58 @@ |
|||
package com.qs.serve.modules.goods.entity.vo; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import com.qs.serve.common.framework.mybatis.handler.meta.SplitStringTypeHandler; |
|||
import com.qs.serve.modules.goods.entity.GoodsSku; |
|||
import lombok.Data; |
|||
import org.apache.ibatis.type.JdbcType; |
|||
import org.hibernate.validator.constraints.Length; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* spu 实体类 |
|||
* @author YenHex |
|||
* @since 2022-10-09 |
|||
*/ |
|||
@Data |
|||
@TableName(value = "goods_spu",autoResultMap = true) |
|||
public class GoodsSpuExportVo implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** PK */ |
|||
private Long id; |
|||
|
|||
/** 商品编码 */ |
|||
private String spuCode; |
|||
|
|||
/** 商品名字 */ |
|||
private String name; |
|||
|
|||
/** 投放费用(1是 0否) */ |
|||
private Integer shelf; |
|||
|
|||
/** 是否可以下单 1、是;0否 */ |
|||
private Integer orderFlag; |
|||
|
|||
/** 可投放费用标识 */ |
|||
private Integer costFlag; |
|||
|
|||
/** 商品销售类型:0-普通商品;1-赠品 */ |
|||
private Integer goodsSaleType; |
|||
|
|||
/** 三级类目:系列名称 */ |
|||
private String cateName; |
|||
|
|||
|
|||
} |
|||
|
Loading…
Reference in new issue