Commit 869edc92 authored by yexiong.wang's avatar yexiong.wang

fix

parent 7fdb3241
...@@ -10,10 +10,15 @@ public class ApplyBill { ...@@ -10,10 +10,15 @@ public class ApplyBill {
private Long billId; private Long billId;
private BigDecimal amount; private BigDecimal amount;
public boolean equals(ApplyBill applyBill){ @Override
if (applyBill == null){ public boolean equals(Object o){
if (o == null){
return false; return false;
} }
return Objects.equals(applyBill.getBillId(), this.getBillId()); if (o instanceof ApplyBill){
ApplyBill applyBill = (ApplyBill) o;
return Objects.equals(applyBill.billId, this.billId);
}
return super.equals(o);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment