package com.ssm.di.constructor;

import java.math.BigDecimal;

public class TestNew {
public static void main(String[] args) {
    //通过new的方式实例化Budget对象
    Budget budget = new Budget();
    budget.setBudgetId(0001);
    budget.setCategory("餐饮预算");
    budget.setAmount(new BigDecimal("5000.00"));
    budget.setPeriod("月度");
    budget.setStartDate("2025-04-13");
    budget.setRemark("无");
    System.out.println(budget);
    //通过new的方式实例化Notice对象
    Notice notice = new Notice();
    notice.setNoticeId(1);
    notice.setUserId(1001);
    notice.setNoticeTitle("月度预算提醒");
    notice.setNoticeContent("您本月餐饮预算已使用80%，请注意控制支出");
    notice.setNoticeType("预算提醒");
    notice.setNoticeStatus(0);
    notice.setCreateTime("2026-4-10 09:00:00");
    System.out.println(notice);
    //通过new的方式实例化Dict对象
    Dict dict = new Dict();
    dict.setDictId(1);
    dict.setDictType("income_type");
    dict.setDictCode(new String("1"));
    dict.setDictName("工资收入");
    dict.setDictSort(1);
    dict.setIsValid("Y");
    System.out.println(dict);


}
}

