package com.ruoyi.web.modules.industryservice.domain;

import java.math.BigDecimal;
import java.util.Date;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 草场使用记录 biz_grassland_usage_record
 */
public class BizGrasslandUsageRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long id;

    @NotNull(message = "草场不能为空")
    private Long grasslandId;

    @NotNull(message = "养殖主体不能为空")
    private Long pastureId;

    @NotNull(message = "使用面积不能为空")
    private BigDecimal usageAreaMu;

    @NotNull(message = "开始使用日期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date useStartDate;

    @NotNull(message = "结束使用日期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date useEndDate;

    private Integer actualUseDays;

    @NotNull(message = "放牧数量不能为空")
    private Integer grazingHeadCount;

    @NotNull(message = "放牧方式不能为空")
    private Integer grazingMethod;

    /** 0 存在 2 删除 */
    private String delFlag;

    /** 列表：草场名称模糊 */
    private String keyword;

    /** 列表：创建日期起 yyyy-MM-dd */
    private String startDate;

    /** 列表：创建日期止 yyyy-MM-dd */
    private String endDate;

    /** 展示：草场名称（JOIN） */
    private String grasslandName;

    /** 展示：养殖主体名称（JOIN） */
    private String pastureName;

    public Long getId()
    {
        return id;
    }

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

    public Long getGrasslandId()
    {
        return grasslandId;
    }

    public void setGrasslandId(Long grasslandId)
    {
        this.grasslandId = grasslandId;
    }

    public Long getPastureId()
    {
        return pastureId;
    }

    public void setPastureId(Long pastureId)
    {
        this.pastureId = pastureId;
    }

    public BigDecimal getUsageAreaMu()
    {
        return usageAreaMu;
    }

    public void setUsageAreaMu(BigDecimal usageAreaMu)
    {
        this.usageAreaMu = usageAreaMu;
    }

    public Date getUseStartDate()
    {
        return useStartDate;
    }

    public void setUseStartDate(Date useStartDate)
    {
        this.useStartDate = useStartDate;
    }

    public Date getUseEndDate()
    {
        return useEndDate;
    }

    public void setUseEndDate(Date useEndDate)
    {
        this.useEndDate = useEndDate;
    }

    public Integer getActualUseDays()
    {
        return actualUseDays;
    }

    public void setActualUseDays(Integer actualUseDays)
    {
        this.actualUseDays = actualUseDays;
    }

    public Integer getGrazingHeadCount()
    {
        return grazingHeadCount;
    }

    public void setGrazingHeadCount(Integer grazingHeadCount)
    {
        this.grazingHeadCount = grazingHeadCount;
    }

    public Integer getGrazingMethod()
    {
        return grazingMethod;
    }

    public void setGrazingMethod(Integer grazingMethod)
    {
        this.grazingMethod = grazingMethod;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getKeyword()
    {
        return keyword;
    }

    public void setKeyword(String keyword)
    {
        this.keyword = keyword;
    }

    public String getStartDate()
    {
        return startDate;
    }

    public void setStartDate(String startDate)
    {
        this.startDate = startDate;
    }

    public String getEndDate()
    {
        return endDate;
    }

    public void setEndDate(String endDate)
    {
        this.endDate = endDate;
    }

    public String getGrasslandName()
    {
        return grasslandName;
    }

    public void setGrasslandName(String grasslandName)
    {
        this.grasslandName = grasslandName;
    }

    public String getPastureName()
    {
        return pastureName;
    }

    public void setPastureName(String pastureName)
    {
        this.pastureName = pastureName;
    }
}
