Commit 4b69bcd4 authored by yexiong.wang's avatar yexiong.wang

edit

parent bedeb5db
......@@ -3,6 +3,7 @@ package cn.quantgroup.customer.rest.param.vcc;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Objects;
@Data
public class ApplyBill {
......@@ -13,9 +14,6 @@ public class ApplyBill {
if (applyBill == null){
return false;
}
if (applyBill.getBillId() == this.getBillId() || applyBill.getAmount().compareTo(this.getAmount()) == 0){
return true;
}
return false;
return Objects.equals(applyBill.getBillId(), this.getBillId()) && applyBill.getAmount().compareTo(this.getAmount()) == 0;
}
}
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