From 946659573e0b5367786a5bea2850dce9b50d16b8 Mon Sep 17 00:00:00 2001 From: gaoxq <376340421@qq.com> Date: Sun, 22 Mar 2026 22:56:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/apps/Service/erpFlowService.java | 38 +++++++++---------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/web-api/src/main/java/com/jeesite/modules/apps/Service/erpFlowService.java b/web-api/src/main/java/com/jeesite/modules/apps/Service/erpFlowService.java index 90e9391..c9b55aa 100644 --- a/web-api/src/main/java/com/jeesite/modules/apps/Service/erpFlowService.java +++ b/web-api/src/main/java/com/jeesite/modules/apps/Service/erpFlowService.java @@ -85,38 +85,36 @@ public class erpFlowService { debts.setRemaining(BigDecimalUtils.add(debts.getRemaining(), erpDebtRecords.getRepayAmount())); erpDebtsService.save(debts); - if (debts.getDebtType().equals("1")) { account.setUpdateTime(new Date()); account.setCurrentBalance(BigDecimalUtils.subtract(account.getCurrentBalance(), erpDebtRecords.getRepayAmount())); erpAccountService.save(account); addFlow( - erpDebtRecords.getDebtName(), // 交易名称 - category.getCategoryType(), // 交易类型 - erpDebtRecords.getRepayAmount(), // 交易金额 - erpDebtRecords.getAccountId(), // 账户ID - debts.getCategoryId(), // 分类ID - erpDebtRecords.getRemark(), // 备注 - erpDebtRecords.getDebtId(), // 业务ID - DateUtils.getCurrentYear(), // 年份 - DateUtils.getCurrentMonth() // 月份 + erpDebtRecords.getDebtName(), + category.getCategoryType(), + erpDebtRecords.getRepayAmount(), + erpDebtRecords.getAccountId(), + category.getCategoryId(), + erpDebtRecords.getRemark(), + erpDebtRecords.getDebtId(), + DateUtils.getCurrentYear(), + DateUtils.getCurrentMonth() ); } - if (debts.getDebtType().equals("2")) { account.setUpdateTime(new Date()); account.setCurrentBalance(BigDecimalUtils.add(account.getCurrentBalance(), erpDebtRecords.getRepayAmount())); erpAccountService.save(account); addFlow( - erpDebtRecords.getDebtName(), // 交易名称 - category.getCategoryType(), // 交易类型 - erpDebtRecords.getRepayAmount(), // 交易金额 - erpDebtRecords.getAccountId(), // 账户ID - debts.getCategoryId(), // 分类ID - erpDebtRecords.getRemark(), // 备注 - erpDebtRecords.getDebtId(), // 业务ID - DateUtils.getCurrentYear(), // 年份 - DateUtils.getCurrentMonth() // 月份 + erpDebtRecords.getDebtName(), + category.getCategoryType(), + erpDebtRecords.getRepayAmount(), + erpDebtRecords.getAccountId(), + category.getCategoryId(), + erpDebtRecords.getRemark(), + erpDebtRecords.getDebtId(), + DateUtils.getCurrentYear(), + DateUtils.getCurrentMonth() ); } }