package com.ssm.di.constructor;

import java.math.BigDecimal;


public class Budget {
    //预算编号
    private Integer budgetId;
    //预算分类
    private String category;
    //预算金额
    private BigDecimal amount;
    //预算周期
    private String period;
    //预算生效日期
    private String startDate;
    //预算备注
    private String remark;

    public Budget(){}

    public Budget(Integer budgetId, String category, BigDecimal amount, String period, String startDate, String remark) {
        this.budgetId = budgetId;
        this.category = category;
        this.amount = amount;
        this.period = period;
        this.startDate = startDate;
        this.remark = remark;
    }

    public Integer getBudgetId() {
        return budgetId;
    }

    public void setBudgetId(Integer budgetId) {
        this.budgetId = budgetId;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getPeriod() {
        return period;
    }

    public void setPeriod(String period) {
        this.period = period;
    }

    public String getStartDate() {
        return startDate;
    }

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

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    //自定义方法
    public String toString(){
        return "预算编号：" + budgetId + "\n"
                + "预算分类：" + category +"\n"
                + "预算金额：" + amount + "\n"
                + "预算周期：" + period + "\n"
                + "生效日期：" + startDate + "\n"
                + "备注：" + remark;
    }
}
