liuj преди 6 месеца
родител
ревизия
a9e4839884
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/java/com/sunxung/factoring/service/ledger/impl/LedgerManagementServiceImpl.java

+ 1 - 1
src/main/java/com/sunxung/factoring/service/ledger/impl/LedgerManagementServiceImpl.java

@@ -2323,7 +2323,7 @@ public class LedgerManagementServiceImpl implements LedgerManagementService {
                     newPrincipalList.add(factoring);
                 });
             } else {
-                if (p.getPlanDate().compareTo(ledgerDate) == 0) {
+                if (DateUtil.isSameDay(p.getPlanDate(), ledgerDate)) {
                     PaymentCollectionPlanFactoring factoring = new PaymentCollectionPlanFactoring();
                     factoring.setPlanDate(p.getPlanDate());
                     factoring.setAmount(p.getAmount());