Quellcode durchsuchen

分账管理优化

liuj vor 6 Monaten
Ursprung
Commit
a9e4839884

+ 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());