peter
2025-11-19 eb357bb9938d569734b04948695726b80c5dfb85
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
@@ -138,4 +147,15 @@
            @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);
    }
}