新增待办信息

This commit is contained in:
2026-01-02 15:56:39 +08:00
parent 1d779abd78
commit c62276b4be

View File

@@ -1,5 +1,6 @@
package com.jeesite.modules.erp.web;
import java.util.Date;
import java.util.List;
import com.jeesite.modules.app.utils.BigDecimalUtils;
@@ -160,8 +161,10 @@ public class ErpAccountTransferController extends BaseController {
ErpAccountTransfer transfer = erpAccountTransferService.get(erpAccountTransfer);
ErpAccount outAccount = erpAccountService.get(transfer.getOutAccountId());
ErpAccount inAccount = erpAccountService.get(transfer.getInAccountId());
outAccount.setCurrentBalance(BigDecimalUtils.subtract(outAccount.getCurrentBalance(), transfer.getTransferAmount()));
inAccount.setUpdateTime(new Date());
outAccount.setUpdateTime(new Date());
inAccount.setCurrentBalance(BigDecimalUtils.add(inAccount.getCurrentBalance(), transfer.getTransferAmount()));
outAccount.setCurrentBalance(BigDecimalUtils.subtract(outAccount.getCurrentBalance(), transfer.getTransferAmount()));
erpAccountService.save(inAccount);
erpAccountService.save(outAccount);
return renderResult(Global.TRUE, text("转入账户成功!"));