peter
2026-01-01 a66b2a41f265cc9526781e39c1d6c6d5f5d7c013
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package com.nq.controller.agent;
 
import com.nq.common.ServerResponse;
import com.nq.dao.UserMapper;
import com.nq.pojo.UserStockSubscribe;
import com.nq.service.IStockSubscribeService;
import com.nq.service.IUserPositionService;
import com.nq.service.IUserStockSubscribeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
 
import javax.servlet.http.HttpServletRequest;
 
/**
 * 新股管理接口
 */
@Controller
@RequestMapping({"/agent/newstock/"})
public class AgentNewStockController {
 
    @Autowired
    UserMapper userMapper;
 
    @Autowired
    private IUserStockSubscribeService userStockSubscribeService;
 
    @Autowired
    private IStockSubscribeService stockSubscribeService;
 
    @Autowired
    private IUserPositionService iUserPositionService;
 
    //申购列表查询
    @RequestMapping({"applyList.do"})
    @ResponseBody
    public ServerResponse applyList(Integer agentId, String phone, String newName, String newCode, Integer status, Integer userId, @RequestParam(name = "pageNum",defaultValue = "1") Integer pageNum,@RequestParam(name = "pageSize",defaultValue = "10")  Integer pageSize, HttpServletRequest request) {
        return userStockSubscribeService.listByAgent(agentId,phone,newName,newCode,status,"","",userId,pageNum,pageSize,request);
    }
 
    //申购信息-添加 修改
    @RequestMapping({"saveStockSubscribe.do"})
    @ResponseBody
    public ServerResponse saveStockSubscribe(UserStockSubscribe model, HttpServletRequest request) {
        return this.userStockSubscribeService.save(model, request);
    }
 
    //新股转持仓
    @RequestMapping({"addUserPosition.do"})
    @ResponseBody
    public ServerResponse newStockToPosition(@RequestParam("id")Integer id) {
        return this.iUserPositionService.newStockToPosition(id);
    }
 
 
}