|
|
|
|
@ -0,0 +1,59 @@
|
|
|
|
|
package com.ssm.aop.xml;
|
|
|
|
|
|
|
|
|
|
public class Expense {
|
|
|
|
|
private Integer id;
|
|
|
|
|
private Integer userId;
|
|
|
|
|
private String type;
|
|
|
|
|
private double money;
|
|
|
|
|
private String expenseTime;
|
|
|
|
|
|
|
|
|
|
public void printInfo(){
|
|
|
|
|
System.out.println("=====赵晋鹤-支出信息=====");
|
|
|
|
|
System.out.println("支出ID:"+id);
|
|
|
|
|
System.out.println("用户ID:"+userId);
|
|
|
|
|
System.out.println("支出类型:"+type);
|
|
|
|
|
System.out.println("金额:"+money);
|
|
|
|
|
System.out.println("时间:"+expenseTime);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 👇 以下是必须的 getter 和 setter
|
|
|
|
|
public Integer getId() {
|
|
|
|
|
return id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setId(Integer id) {
|
|
|
|
|
this.id = id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getUserId() {
|
|
|
|
|
return userId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setUserId(Integer userId) {
|
|
|
|
|
this.userId = userId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getType() {
|
|
|
|
|
return type;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setType(String type) {
|
|
|
|
|
this.type = type;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public double getMoney() {
|
|
|
|
|
return money;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setMoney(double money) {
|
|
|
|
|
this.money = money;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getExpenseTime() {
|
|
|
|
|
return expenseTime;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setExpenseTime(String expenseTime) {
|
|
|
|
|
this.expenseTime = expenseTime;
|
|
|
|
|
}
|
|
|
|
|
}
|