package com.panzhihua.service_community.model.dos;
|
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
|
import lombok.Data;
|
|
/**
|
* @auther lyq
|
* @create 2021-04-14 15:02:49
|
* @describe 商品规格表实体类
|
*/
|
|
@Data
|
@TableName("com_shop_goods_attr")
|
public class ComShopGoodsAttrDO implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 商品规格id
|
*/
|
@TableId(type = IdType.ASSIGN_ID)
|
private Long id;
|
|
/**
|
* 商品id
|
*/
|
private Long goodsId;
|
|
/**
|
* 店铺id
|
*/
|
private Long storeId;
|
|
/**
|
* 商品名称
|
*/
|
private String goodsName;
|
|
/**
|
* 商品规格
|
*/
|
private String goodsAttr;
|
|
/**
|
* 商品规格库存
|
*/
|
private Integer stock;
|
|
/**
|
* 商品规格销量
|
*/
|
private Integer sale;
|
|
/**
|
* 商品规格图
|
*/
|
private String attrPic;
|
|
/**
|
* 是否是默认规格(1.是 2.否)
|
*/
|
private Integer isDefault;
|
|
/**
|
* 规格价格
|
*/
|
private BigDecimal price;
|
|
/**
|
* 创建时间
|
*/
|
@TableField(fill = FieldFill.INSERT)
|
private Date createAt;
|
|
/**
|
* 修改时间
|
*/
|
@TableField(fill = FieldFill.UPDATE)
|
private Date updateAt;
|
|
@Override
|
public String toString() {
|
return "ComShopGoodsAttrDO{" + "id=" + id + ", goodsId=" + goodsId + ", storeId=" + storeId + ", goodsName="
|
+ goodsName + ", goodsAttr=" + goodsAttr + ", stock=" + stock + ", sale=" + sale + ", attrPic=" + attrPic
|
+ ", isDefault=" + isDefault + ", price=" + price + ", createAt=" + createAt + ", updateAt=" + updateAt
|
+ "}";
|
}
|
}
|