From 6d4b5de88f60ccebf7b0968917749bcf31a5279b Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期四, 06 三月 2025 21:35:31 +0800
Subject: [PATCH] 权限

---
 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/FlowListenerService.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/FlowListenerService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/FlowListenerService.java
index 4ac1ed2..e9fcb4d 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/FlowListenerService.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/FlowListenerService.java
@@ -369,6 +369,7 @@
                             .last("limit 1").one();
                     if (!beforeBill.getEndTime().toLocalDate().equals(contract.getEndTime().toLocalDate())) {
                         while (beforeBill.getEndTime().plusMonths(contract.getPayType().equals("1") ? 1 : contract.getPayType().equals("2") ? 3 : 12).isBefore(contract.getEndTime())) {
+                            System.err.println("生成后续账单");
                             TBill tBill = new TBill();
                             tBill.setContractId(contract.getId());
                             tBill.setContractNumber(contract.getContractNumber());
@@ -381,6 +382,7 @@
                             }
                             tBill.setContractId(contract.getId());
                             if (contract.getIsIncreasing()) {
+                                System.err.println("执行递增递减");
                                 if (tContractRentType != null) {
                                     // 如果变过 并且时间在递增递减时间段内
                                     if (contract.getChangeTime() != null) {
@@ -491,6 +493,7 @@
                                     tBill.setOutstandingMoney(tBill.getPayableFeesMoney());
                                 }
                             }else {
+                                System.err.println("不执行递增递减");
                                 tBill.setPayableFeesMoney(contract.getChangeRent().multiply(new BigDecimal(contract.getPayType().equals("1") ? 1 : contract.getPayType().equals("2") ? 3 : 12)));
                                 tBill.setOutstandingMoney(tBill.getPayableFeesMoney());
                             }

--
Gitblit v1.7.1