1 回答
TA贡献1815条经验 获得超10个赞
您尚未在构造函数中设置对象
您的代码:
public GroupAccount(long groupAccountId,
long adminId,
String accountName,
String accountDescription,
int numberOfMembers,
BigDecimal totalAmountPaid,
BigDecimal totalAmountOwed,
int testResourceId) {
}
正确的构造函数:
public GroupAccount(long groupAccountId,
long adminId,
String accountName,
String accountDescription,
int numberOfMembers,
BigDecimal totalAmountPaid,
BigDecimal totalAmountOwed,
int testResourceId) {
this.groupAccountId = groupAccountId;
this.adminId = adminId;
this.accountName = accountName;
this.accountDescription = accountDescription;
this.numberOfMembers = numberOfMembers;
this.totalAmountPaid = totalAmountPaid;
this.totalAmountOwed = totalAmountOwed;
this.testResourceId = testResourceId;
}
添加回答
举报