新增前端vue
This commit is contained in:
11
web-api/src/main/java/com/jeesite/modules/app/appStart.java
Normal file
11
web-api/src/main/java/com/jeesite/modules/app/appStart.java
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
package com.jeesite.modules.app;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
public class appStart {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -159,6 +159,7 @@ public class ErpAccountTransferController extends BaseController {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public String finish(ErpAccountTransfer erpAccountTransfer) {
|
public String finish(ErpAccountTransfer erpAccountTransfer) {
|
||||||
ErpAccountTransfer transfer = erpAccountTransferService.get(erpAccountTransfer);
|
ErpAccountTransfer transfer = erpAccountTransferService.get(erpAccountTransfer);
|
||||||
|
transfer.setStatus("1");
|
||||||
ErpAccount outAccount = erpAccountService.get(transfer.getOutAccountId());
|
ErpAccount outAccount = erpAccountService.get(transfer.getOutAccountId());
|
||||||
ErpAccount inAccount = erpAccountService.get(transfer.getInAccountId());
|
ErpAccount inAccount = erpAccountService.get(transfer.getInAccountId());
|
||||||
inAccount.setUpdateTime(new Date());
|
inAccount.setUpdateTime(new Date());
|
||||||
@@ -167,6 +168,7 @@ public class ErpAccountTransferController extends BaseController {
|
|||||||
outAccount.setCurrentBalance(BigDecimalUtils.subtract(outAccount.getCurrentBalance(), transfer.getTransferAmount()));
|
outAccount.setCurrentBalance(BigDecimalUtils.subtract(outAccount.getCurrentBalance(), transfer.getTransferAmount()));
|
||||||
erpAccountService.save(inAccount);
|
erpAccountService.save(inAccount);
|
||||||
erpAccountService.save(outAccount);
|
erpAccountService.save(outAccount);
|
||||||
|
erpAccountTransferService.save(transfer);
|
||||||
return renderResult(Global.TRUE, text("转入账户成功!"));
|
return renderResult(Global.TRUE, text("转入账户成功!"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user