| | |
| | | |
| | | import com.nq.common.ServerResponse; |
| | | |
| | | import com.nq.pojo.AgentUser; |
| | | import com.nq.pojo.UserStockSubscribe; |
| | | import com.nq.service.IAgentUserService; |
| | | |
| | |
| | | @RequestParam(value = "keyword", defaultValue = "") String keyword, |
| | | @RequestParam(value = "agentId", required = false) String agentId, |
| | | HttpServletRequest request) { |
| | | return this.iUserStockSubscribeService.getList(pageNum, pageSize, keyword,agentId, request); |
| | | String loginToken = CookieUtils.readLoginToken(request, PropertiesUtil.getProperty("agent.cookie.name")); |
| | | String agentJson = RedisShardedPoolUtils.get(loginToken); |
| | | AgentUser agentUser = (AgentUser) JsonUtil.string2Obj(agentJson, AgentUser.class); |
| | | if (agentUser ==null){ |
| | | return ServerResponse.createByError("請先登錄",null); |
| | | } |
| | | return this.iUserStockSubscribeService.getList(pageNum, pageSize, keyword,agentUser.getId().toString(), request); |
| | | } |
| | | |
| | | //申购信息-添加 修改 |