1、实现月度预算功能,每个用户每个月可以设置一个预算金额。在首页展示预算相关信息,并提供预算调整功能。每月首次打开应用时,自动结算上月预算并弹窗通知用户,同时开启本月预算。
24 lines
570 B
Java
24 lines
570 B
Java
package com.accounting.dto;
|
||
|
||
import lombok.Data;
|
||
|
||
import java.math.BigDecimal;
|
||
|
||
@Data
|
||
public class BudgetSettlementResponse {
|
||
private Integer year; // 年份
|
||
|
||
private Integer month; // 月份
|
||
|
||
private BigDecimal budgetAmount; // 预算金额
|
||
|
||
private BigDecimal actualExpense; // 实际支出
|
||
|
||
private Boolean isOverBudget; // 是否超支
|
||
|
||
private BigDecimal overAmount; // 超支金额(如果超支)
|
||
|
||
private BigDecimal completionRate; // 完成率(实际支出/预算金额,如果预算为0则为null)
|
||
}
|
||
|