Commit 2a59d426 by jianan

前端对接问题修复66

parent 42ec1c40
...@@ -262,7 +262,7 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune> ...@@ -262,7 +262,7 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
.one(); .one();
if (ef == null) return; if (ef == null) return;
BigDecimal newPaid = ef.getPaidAmount().add(currentPaymentAmount); BigDecimal newPaid = ef.getPaidAmount() == null ? BigDecimal.ZERO : ef.getPaidAmount().add(currentPaymentAmount);
BigDecimal newUnpaid = ef.getAmount().subtract(newPaid); BigDecimal newUnpaid = ef.getAmount().subtract(newPaid);
String newStatus = newUnpaid.compareTo(BigDecimal.ZERO) == 0 ? "6" : "3"; String newStatus = newUnpaid.compareTo(BigDecimal.ZERO) == 0 ? "6" : "3";
......
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