package com.ruoyi.ems.base.domain;

import java.math.BigDecimal;
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.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 能源月份单价对象 ems_base_energy_price
 * 
 * @author Yinq
 * @date 2024-05-08
 */
public class EmsBaseEnergyPrice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键标识 */
    private Long objId;

    /** 能源类型编号 */
    @Excel(name = "能源类型编号")
    private Long energyId;

    /** 能源类型名称 */
    @Excel(name = "能源类型名称")
    private String energyName;

    /** 单位 */
    @Excel(name = "单位")
    private String measureUnit;

    /** 采购月份 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采购月份", width = 30, dateFormat = "yyyy-MM")
    private Date monthDate;

    /** 含税单价 */
    @Excel(name = "含税单价")
    private BigDecimal price;

    /** 不含税单价 */
    @Excel(name = "不含税单价")
    private BigDecimal unTaxPrice;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;

    public void setObjId(Long objId) 
    {
        this.objId = objId;
    }

    public Long getObjId() 
    {
        return objId;
    }
    public void setEnergyId(Long energyId) 
    {
        this.energyId = energyId;
    }

    public Long getEnergyId() 
    {
        return energyId;
    }
    public void setEnergyName(String energyName) 
    {
        this.energyName = energyName;
    }

    public String getEnergyName() 
    {
        return energyName;
    }
    public void setMeasureUnit(String measureUnit) 
    {
        this.measureUnit = measureUnit;
    }

    public String getMeasureUnit() 
    {
        return measureUnit;
    }
    public void setMonthDate(Date monthDate) 
    {
        this.monthDate = monthDate;
    }

    public Date getMonthDate() 
    {
        return monthDate;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setUnTaxPrice(BigDecimal unTaxPrice)
    {
        this.unTaxPrice = unTaxPrice;
    }

    public BigDecimal getUnTaxPrice()
    {
        return unTaxPrice;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("objId", getObjId())
            .append("energyId", getEnergyId())
            .append("energyName", getEnergyName())
            .append("measureUnit", getMeasureUnit())
            .append("monthDate", getMonthDate())
            .append("price", getPrice())
            .append("unTaxPrice", getUnTaxPrice())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
