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

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

@@ -1384,7 +1384,7 @@ public class LedgerManagementServiceImpl implements LedgerManagementService {
                                                         && planFactoringAssign.getPlanFactoringId() != null && lastInterestFactoring.getId().equals(planFactoringAssign.getPlanFactoringId()));
                                         if (exist) {
                                             //说明最后一期计划被删了
-                                            ledgerPlanFactoringAssignList.add(addPlanFactoringInsertAssign(ledgerDate, surplusInterest, BigDecimal.ZERO,
+                                            ledgerPlanFactoringAssignList.add(addPlanFactoringInsertAssign(lastInterestFactoring.getPlanDate(), surplusInterest, BigDecimal.ZERO,
                                                     IncomeExpenditureTypeDict.ChildEnum.INTEREST.getCode(), goodsAssignVo, 0));
                                         } else {
                                             lastInterestFactoring.setAmount(surplusInterest);
@@ -1423,7 +1423,7 @@ public class LedgerManagementServiceImpl implements LedgerManagementService {
                                                         && planFactoringAssign.getPlanFactoringId() != null && lastManagementFactoring.getId().equals(planFactoringAssign.getPlanFactoringId()));
                                         if (exist) {
                                             //说明最后一期计划被删了
-                                            ledgerPlanFactoringAssignList.add(addPlanFactoringInsertAssign(ledgerDate, surplusManagement, BigDecimal.ZERO,
+                                            ledgerPlanFactoringAssignList.add(addPlanFactoringInsertAssign(lastManagementFactoring.getPlanDate(), surplusManagement, BigDecimal.ZERO,
                                                     IncomeExpenditureTypeDict.ChildEnum.MANAGEMENT_FEE.getCode(), goodsAssignVo, 0));
                                         } else {
                                             lastManagementFactoring.setAmount(surplusManagement);