初始化项目

This commit is contained in:
2026-03-22 22:56:40 +08:00
parent bff3b3bd78
commit 946659573e

View File

@@ -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()
);
}
}