From f525648210da700d58d3b3a5c8a48d46abba4a68 Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Tue, 01 Oct 2024 21:20:02 +0800
Subject: [PATCH] 1

---
 src/main/java/com/nq/controller/agent/AgentController.java |   23 +++++++++++++++++++++--
 1 files changed, 21 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 e77a4ce..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);
     }
 
     //查询股票统计指定时间内,代理客户(已平仓)的交易盈亏
@@ -138,4 +141,20 @@
             @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