| | |
| | | import com.nq.utils.stock.pinyin.GetPyByChinese; |
| | | import com.nq.utils.stock.qq.QqStockApi; |
| | | import com.nq.utils.stock.sina.StockApi; |
| | | import com.nq.utils.timeutil.TimeUtil; |
| | | import com.nq.utils.translate.GoogleTranslateUtil; |
| | | import com.nq.vo.stock.*; |
| | | import com.nq.vo.stock.k.MinDataVO; |
| | |
| | | import java.net.HttpURLConnection; |
| | | import java.net.URL; |
| | | import java.text.SimpleDateFormat; |
| | | import java.time.LocalDate; |
| | | import java.util.*; |
| | | import java.util.concurrent.CompletableFuture; |
| | | import java.util.stream.Collectors; |
| | |
| | | |
| | | @Autowired |
| | | IPriceServices iPriceServices; |
| | | @Autowired |
| | | ITradingHourService tradingHourService; |
| | | |
| | | |
| | | |
| | | public ServerResponse getMarket() { |
| | |
| | | // return ServerResponse.createBySuccess(pageInfo); |
| | | // } |
| | | |
| | | |
| | | |
| | | |
| | | @Override |
| | | public ServerResponse getStockByType(int pageNum, int pageSize, String orderBy, String keyWords, String stockType, HttpServletRequest request) { |
| | | // 启动分页 |
| | |
| | | stockVO.setOpen_px(cacheBaseStock.getOpen()); |
| | | stockVO.setPreclose_px(cacheBaseStock.getPrevClose()); |
| | | } |
| | | if(tradingHourService.isPreMarket(stock.getStockCode())){ |
| | | stockVO.setPreMarket(1); |
| | | }else { |
| | | stockVO.setPreMarket(0); |
| | | } |
| | | Map map = Maps.newHashMap(); |
| | | map.put("introduction", introduction); |
| | | map.put("stock", stockVO); |