From fa1be31de17b8954ff124d76719cd7e00d69857d Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Mon, 11 Nov 2024 16:00:46 +0800
Subject: [PATCH] 1
---
src/main/java/com/nq/controller/agent/AgentController.java | 31 +++++++++++++++++++++++++++++--
1 files changed, 29 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/nq/controller/agent/AgentController.java b/src/main/java/com/nq/controller/agent/AgentController.java
index cae8335..3dfe0d2 100644
--- a/src/main/java/com/nq/controller/agent/AgentController.java
+++ b/src/main/java/com/nq/controller/agent/AgentController.java
@@ -82,8 +82,11 @@
//添加用户管理 账户信息
@RequestMapping({"addSimulatedAccount.do"})
@ResponseBody
- public ServerResponse addSimulatedAccount(HttpServletRequest request,@RequestParam("agentId") Integer agentId, @RequestParam("phone") String phone, @RequestParam("amt") String amt, @RequestParam("accountType") Integer accountType, @RequestParam("pwd") String pwd) {
- return this.iUserService.addSimulatedAccount(agentId, phone, pwd, amt, accountType, request);
+ public ServerResponse addSimulatedAccount(HttpServletRequest request,@RequestParam("agentId") Integer agentId,
+ @RequestParam("phone") String phone,
+ @RequestParam("accountType") Integer accountType,
+ @RequestParam("pwd") String pwd) {
+ return this.iUserService.addSimulatedAccount(agentId, phone, pwd, "0", accountType, request);
}
//查询股票统计指定时间内,代理客户(已平仓)的交易盈亏
@@ -130,4 +133,28 @@
}
return this.iAgentUserService.updateOnlineServices(onLineServices,agentId);
}
+
+
+ @RequestMapping("getMoney.do")
+ @ResponseBody
+ public ServerResponse getMoney(
+ @RequestParam("userId") Integer id){
+ return iUserService.getMoney(id);
+ }
+
+
+ //查询首页充值,提现,注册统计
+ @RequestMapping({"moneyCount.do"})
+ @ResponseBody
+ public ServerResponse moneyCount(@RequestParam(value = "agentId", required = false) String agentId,@RequestParam(value = "startTime", required = false) String startTime,@RequestParam(value = "entTime", required = false) String entTime) {
+ return this.iSiteAdminService.moneyCount(agentId,startTime,entTime);
+ }
+
+ //查询代理总资金
+ @RequestMapping({"totalAgencyFunds.do"})
+ @ResponseBody
+ public ServerResponse totalAgencyFunds(@RequestParam(value = "agentId", required = false) String agentId) {
+ return this.iSiteAdminService.totalAgencyFunds(agentId);
+ }
+
}
--
Gitblit v1.9.3