yml
zyy
2025-11-14 8283f7e6ad78ebb5493b4c6a2abf8ee767c49a05
src/main/java/com/nq/controller/agent/AgentController.java
@@ -34,6 +34,8 @@
    @Autowired
    ISiteAdminService iSiteAdminService;
    @Autowired
    IUserAssetsServices iUserAssetsServices;
    //查询指定代理信息
    @RequestMapping({"getAgentInfo.do"})
@@ -97,6 +99,13 @@
        return this.iUserPositionService.getIncome(agentId, positionType, beginTime, endTime);
    }
    //查询首页充值,提现,注册统计
    @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({"getIndexIncome.do"})
    @ResponseBody
@@ -130,4 +139,23 @@
        }
        return this.iAgentUserService.updateOnlineServices(onLineServices,agentId);
    }
    @RequestMapping("getMoney.do")
    @ResponseBody
    public  ServerResponse getMoney(
            @RequestParam("userId") Integer id){
        return  iUserService.getMoney(id);
    }
    @RequestMapping("updateMoney.do")
    @ResponseBody
    public  ServerResponse updateayChnnel(
            @RequestParam("id") Integer id,
            @RequestParam("amt") String amt,
            @RequestParam("type") String type
    ){
        return  iUserAssetsServices.updateUserAssets(id,amt,type);
    }
}