| | |
| | | import com.nq.service.ConvertBondService; |
| | | import com.nq.service.IStockService; |
| | | import com.nq.service.StockDzService; |
| | | import com.nq.service.StockVipService; |
| | | import com.nq.utils.CacheUtil; |
| | | import com.nq.utils.HttpClientRequest; |
| | | import com.nq.utils.redis.RedisShardedPoolUtils; |
| | |
| | | IStockService iStockService; |
| | | @Autowired |
| | | StockDzService stockDzService; |
| | | @Autowired |
| | | StockVipService stockVipService; |
| | | @Autowired |
| | | private ConvertBondService converBondService; |
| | | |
| | |
| | | return this.stockDzService.getDzList(); |
| | | } |
| | | |
| | | // /** |
| | | // * vip 抢筹列表 |
| | | // */ |
| | | // @PostMapping({"getVipList.do"}) |
| | | // @ResponseBody |
| | | // public ServerResponse getVipList() { |
| | | // return this.iStockService.ztb(); |
| | | // } |
| | | |
| | | /** |
| | | * vip 抢筹列表 |
| | | *VIP交易 列表 |
| | | */ |
| | | @PostMapping({"getVipList.do"}) |
| | | @ResponseBody |
| | | public ServerResponse getVipList() { |
| | | ServerResponse stockSort = this.iStockService.getStockSort(1, 15, "changepercent", 0, "hs_a"); |
| | | if(!ObjectUtils.isEmpty(stockSort.getData())){ |
| | | JSONArray data = (JSONArray)stockSort.getData(); |
| | | ArrayList<HashMap> list = new ArrayList<>(); |
| | | for(int i=0;i<data.size();i++){ |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | map.put("c",data.getJSONObject(i).getString("symbol").substring(2)); |
| | | map.put("p",data.getJSONObject(i).getFloatValue("trade")*1000); |
| | | map.put("n",data.getJSONObject(i).getString("name")); |
| | | map.put("zdp",data.getJSONObject(i).getFloatValue("changepercent")); |
| | | list.add(map); |
| | | } |
| | | return ServerResponse.createBySuccess(list); |
| | | } |
| | | return ServerResponse.createByError(); |
| | | return this.stockVipService.getVipList(); |
| | | } |
| | | // /** |
| | | // * vip 抢筹根据股票代码查询 |