package com.panzhihua.service_community.model.dos; import com.baomidou.mybatisplus.annotation.*; import lombok.Data; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; /** * @auther yh * @create 2022-10-21 09:36:09 * @describe 商品表实体类 */ @Data @TableName("com_shop_flower_goods") public class ComShopFlowerGoodsDO implements Serializable { private static final long serialVersionUID = 1L; /** * 商品id */ @TableId(type = IdType.ASSIGN_ID) private Long id; /** * 商品分类id */ private Long typeId; /** * 商品名称 */ @TableField("`name`") private String name; /** * 店铺id */ private Long storeId; /** * 商品主图 */ private String goodsPic; /** * 商品展示图 */ @TableField(updateStrategy = FieldStrategy.IGNORED) private String images; /** * 商品状态(1.出售中 2.已下架 3.回收站) */ @TableField("`status`") private Integer status; /** * 商品销量 */ private Integer sale; /** * 商品原价 */ private BigDecimal originalPrice; /** * 商品现价 */ private BigDecimal price; /** * 商品单位 */ private String unit; /** * 商品排序 */ @TableField("`order`") private Integer order; /** * 商品总库存 */ private Integer stock; /** * 商品详情 */ private String details; /** * 商品备注 */ private String remark; /** * 商品描述 */ private String goodsDescribe; /** * 配送方式(1.自提 2.快递) */ private String deliveryType; /** * 删除状态(1.未删除 2.已删除) */ private Integer deleteStatus; /** * 创建时间 */ @TableField(fill = FieldFill.INSERT) private Date createAt; /** * 修改时间 */ @TableField(fill = FieldFill.UPDATE) private Date updateAt; @Override public String toString() { return "ComShopGoodsDO{" + "id=" + id + ", typeId=" + typeId + ", name=" + name + ", storeId=" + storeId + ", goodsPic=" + goodsPic + ", images=" + images + ", status=" + status + ", sale=" + sale + ", originalPrice=" + originalPrice + ", price=" + price + ", unit=" + unit + ", order=" + order + ", stock=" + stock + ", details=" + details + ", remark=" + remark + ", goodsDescribe=" + goodsDescribe + ", deliveryType=" + deliveryType + ", deleteStatus=" + deleteStatus + ", createAt=" + createAt + ", updateAt=" + updateAt + "}"; } /** * 商品状态(1.上架 2.已下架 3.回收站) */ public interface status { int sell = 1; int lower = 2; int recovery = 3; } /** * 删除状态(1.未删除 2.已删除) */ public interface deleteStatus { int no = 1; int yes = 2; } /** * 配送方式(1.自提 2.快递) */ public interface deliveryType { int store = 1; int express = 2; } }