新增待办信息
This commit is contained in:
@@ -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("转入账户成功!"));
|
||||
|
||||
Reference in New Issue
Block a user