| | |
| | | @Autowired |
| | | IAgentAgencyFeeService iAgentAgencyFeeService; |
| | | |
| | | @Autowired |
| | | ISiteUserOptionLogService iSiteUserOptionLogService; |
| | | |
| | | @Autowired |
| | | ISiteAdminService iSiteAdminService; |
| | |
| | | return this.iAgentUserService.getAgentInfo(request); |
| | | } |
| | | |
| | | @RequestMapping("optionList.do") |
| | | @ResponseBody |
| | | public ServerResponse optionList(@RequestParam(value = "agentId", required = false) Integer agentId,@RequestParam(value = "userId", required = false) Integer userId, @RequestParam(value = "pageNum", defaultValue = "1") int pageNum, @RequestParam(value = "pageSize", defaultValue = "10") int pageSize){ |
| | | return this.iSiteUserOptionLogService.list(agentId,userId,pageNum,pageSize); |
| | | } |
| | | |
| | | //修改代理用户密码 |
| | | @RequestMapping({"updatePwd.do"}) |
| | | @ResponseBody |
| | |
| | | return this.iAgentUserService.updatePwd(oldPwd, newPwd, request); |
| | | } |
| | | |
| | | //查询首页充值,提现,注册统计 |
| | | @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); |
| | | } |
| | | |
| | | //查询首页 资金情况、持仓情况、盈亏信息、提现情况、股票信息、代理信息 |
| | | @RequestMapping({"count.do"}) |
| | |
| | | //添加用户管理 账户信息 |
| | | @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, accountType, request); |
| | | } |
| | | |
| | | //查询股票统计指定时间内,代理客户(已平仓)的交易盈亏 |
| | |
| | | } |
| | | return this.iAgentUserService.updateOnlineServices(onLineServices,agentId); |
| | | } |
| | | |
| | | |
| | | @RequestMapping("getMoney.do") |
| | | @ResponseBody |
| | | public ServerResponse getMoney( |
| | | @RequestParam("userId") Integer id){ |
| | | return iUserService.getMoney(id); |
| | | } |
| | | } |