package com.waimai.web.admin.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.waimai.common.annotation.Excel;
import com.waimai.common.core.domain.BaseEntity;

/**
 * 食品对象 food
 * 
 * @author callmeyan
 * @date 2023-03-24
 */
public class Food extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 食品编号 */
    private Long id;

    /** 分类编号 */
    @Excel(name = "分类编号")
    private Long cid;

    /** 食品标题 */
    @Excel(name = "食品标题")
    private String title;

    /** 商品主图 */
    @Excel(name = "商品主图")
    private String cover;

    /** 食品简介 */
    private String description;

    /** 食品详情 */
    private String content;

    /** 优惠 */
    @Excel(name = "优惠")
    private Long coupon;
    private String couponDesc;

    /** 优惠开始时间 */
    private Date couponStartTime;

    /** 优惠结束时间 */
    private Date couponEndTime;

    /** 价格 */
    @Excel(name = "价格")
    private Long price;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 售卖区域(匹配收货地址,null表示不限制) */
    @Excel(name = "售卖区域(匹配收货地址,null表示不限制)")
    private String area;

    /** 是否推荐 */
    @Excel(name = "是否推荐")
    private Integer recommend;

    /** 推荐开始时间 */
    private Date recommendStartTime;

    /** 推荐结束时间 */
    private Date recommendEndTime;

    /** 已售出数量 */
    @Excel(name = "已售出数量")
    private Long saleCount;

    /** 状态 */
    @Excel(name = "状态")
    private Integer state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCid(Long cid) 
    {
        this.cid = cid;
    }

    public Long getCid() 
    {
        return cid;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setCoupon(Long coupon) 
    {
        this.coupon = coupon;
    }

    public Long getCoupon() 
    {
        return coupon;
    }
    public void setCouponStartTime(Date couponStartTime) 
    {
        this.couponStartTime = couponStartTime;
    }

    public Date getCouponStartTime() 
    {
        return couponStartTime;
    }
    public void setCouponEndTime(Date couponEndTime) 
    {
        this.couponEndTime = couponEndTime;
    }

    public Date getCouponEndTime() 
    {
        return couponEndTime;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }
    public void setArea(String area) 
    {
        this.area = area;
    }

    public String getArea() 
    {
        return area;
    }
    public void setRecommend(Integer recommend) 
    {
        this.recommend = recommend;
    }

    public Integer getRecommend() 
    {
        return recommend;
    }
    public void setRecommendStartTime(Date recommendStartTime) 
    {
        this.recommendStartTime = recommendStartTime;
    }

    public Date getRecommendStartTime() 
    {
        return recommendStartTime;
    }
    public void setRecommendEndTime(Date recommendEndTime) 
    {
        this.recommendEndTime = recommendEndTime;
    }

    public Date getRecommendEndTime() 
    {
        return recommendEndTime;
    }
    public void setSaleCount(Long saleCount) 
    {
        this.saleCount = saleCount;
    }

    public Long getSaleCount() 
    {
        return saleCount;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cid", getCid())
            .append("title", getTitle())
            .append("cover", getCover())
            .append("description", getDescription())
            .append("content", getContent())
            .append("coupon", getCoupon())
            .append("couponStartTime", getCouponStartTime())
            .append("couponEndTime", getCouponEndTime())
            .append("price", getPrice())
            .append("sort", getSort())
            .append("area", getArea())
            .append("recommend", getRecommend())
            .append("recommendStartTime", getRecommendStartTime())
            .append("recommendEndTime", getRecommendEndTime())
            .append("saleCount", getSaleCount())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("state", getState())
            .append("remark", getRemark())
            .toString();
    }

    public String getCouponDesc() {
        return couponDesc;
    }

    public void setCouponDesc(String couponDesc) {
        this.couponDesc = couponDesc;
    }
}
