|
|
|
|
@ -0,0 +1,89 @@
|
|
|
|
|
package com.ssm.ioc;
|
|
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 收入实体类(家庭理财管理系统-收入信息维护模块)
|
|
|
|
|
*/
|
|
|
|
|
public class Income {
|
|
|
|
|
private Integer id; // 收入ID
|
|
|
|
|
private Integer userId; // 所属用户ID(关联User)
|
|
|
|
|
private Integer typeId; // 收入类型ID(关联数据字典)
|
|
|
|
|
private BigDecimal amount; // 收入金额
|
|
|
|
|
private Date incomeDate; // 收入日期
|
|
|
|
|
private String remark; // 备注
|
|
|
|
|
|
|
|
|
|
public Income() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Income(Integer id, Integer userId, Integer typeId, BigDecimal amount, Date incomeDate, String remark) {
|
|
|
|
|
this.id = id;
|
|
|
|
|
this.userId = userId;
|
|
|
|
|
this.typeId = typeId;
|
|
|
|
|
this.amount = amount;
|
|
|
|
|
this.incomeDate = incomeDate;
|
|
|
|
|
this.remark = remark;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 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 Integer getTypeId() {
|
|
|
|
|
return typeId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setTypeId(Integer typeId) {
|
|
|
|
|
this.typeId = typeId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BigDecimal getAmount() {
|
|
|
|
|
return amount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setAmount(BigDecimal amount) {
|
|
|
|
|
this.amount = amount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Date getIncomeDate() {
|
|
|
|
|
return incomeDate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setIncomeDate(Date incomeDate) {
|
|
|
|
|
this.incomeDate = incomeDate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getRemark() {
|
|
|
|
|
return remark;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setRemark(String remark) {
|
|
|
|
|
this.remark = remark;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String toString() {
|
|
|
|
|
return "Income{" +
|
|
|
|
|
"id=" + id +
|
|
|
|
|
", userId=" + userId +
|
|
|
|
|
", typeId=" + typeId +
|
|
|
|
|
", amount=" + amount +
|
|
|
|
|
", incomeDate=" + incomeDate +
|
|
|
|
|
", remark='" + remark + '\'' +
|
|
|
|
|
'}';
|
|
|
|
|
}
|
|
|
|
|
}
|