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

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

/**
 * 草场管理 biz_grassland
 */
public class BizGrassland extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long id;

    @NotBlank(message = "草场名称不能为空")
    @Size(min = 1, max = 10, message = "草场名称长度为1到10个字符")
    private String grasslandName;

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

    @NotNull(message = "退化等级不能为空")
    private Integer degradationLevel;

    @NotNull(message = "利用类型不能为空")
    private Integer utilizationType;

    @NotNull(message = "亩产草量不能为空")
    private BigDecimal grassYieldPerMu;

    @NotNull(message = "利用率不能为空")
    private BigDecimal utilizationRate;

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

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

    @NotNull(message = "轮牧小区数量不能为空")
    private Integer rotationPlotCount;

    @NotNull(message = "小区放牧天数不能为空")
    private Integer rotationGrazingDays;

    @NotNull(message = "轮牧周期不能为空")
    private Integer rotationCycleDays;

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

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

    public Long getId()
    {
        return id;
    }

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

    public String getGrasslandName()
    {
        return grasslandName;
    }

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

    public BigDecimal getAreaMu()
    {
        return areaMu;
    }

    public void setAreaMu(BigDecimal areaMu)
    {
        this.areaMu = areaMu;
    }

    public Integer getDegradationLevel()
    {
        return degradationLevel;
    }

    public void setDegradationLevel(Integer degradationLevel)
    {
        this.degradationLevel = degradationLevel;
    }

    public Integer getUtilizationType()
    {
        return utilizationType;
    }

    public void setUtilizationType(Integer utilizationType)
    {
        this.utilizationType = utilizationType;
    }

    public BigDecimal getGrassYieldPerMu()
    {
        return grassYieldPerMu;
    }

    public void setGrassYieldPerMu(BigDecimal grassYieldPerMu)
    {
        this.grassYieldPerMu = grassYieldPerMu;
    }

    public BigDecimal getUtilizationRate()
    {
        return utilizationRate;
    }

    public void setUtilizationRate(BigDecimal utilizationRate)
    {
        this.utilizationRate = utilizationRate;
    }

    public Date getGrazingBanStartDate()
    {
        return grazingBanStartDate;
    }

    public void setGrazingBanStartDate(Date grazingBanStartDate)
    {
        this.grazingBanStartDate = grazingBanStartDate;
    }

    public Date getGrazingBanEndDate()
    {
        return grazingBanEndDate;
    }

    public void setGrazingBanEndDate(Date grazingBanEndDate)
    {
        this.grazingBanEndDate = grazingBanEndDate;
    }

    public Integer getRotationPlotCount()
    {
        return rotationPlotCount;
    }

    public void setRotationPlotCount(Integer rotationPlotCount)
    {
        this.rotationPlotCount = rotationPlotCount;
    }

    public Integer getRotationGrazingDays()
    {
        return rotationGrazingDays;
    }

    public void setRotationGrazingDays(Integer rotationGrazingDays)
    {
        this.rotationGrazingDays = rotationGrazingDays;
    }

    public Integer getRotationCycleDays()
    {
        return rotationCycleDays;
    }

    public void setRotationCycleDays(Integer rotationCycleDays)
    {
        this.rotationCycleDays = rotationCycleDays;
    }

    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;
    }
}
