@GET @RequestMapping("/conceptScore/{cobFrom}/{cobTo}") @Produces(MediaType.APPLICATION_JSON) public List<StockScoreRecord> getConceptStockScoreRecord( @PathVariable("cobFrom") Integer cobFrom, @PathVariable("cobTo") Integer cobTo) { return stocksService.getConceptScoreDao().queryStockScoreRecordByRange(cobFrom, cobTo); }
@GET @RequestMapping("/conceptScore") @Produces(MediaType.APPLICATION_JSON) public List<StockScoreRecord> getConceptStockScoreRecord() { int n = 10; logger.info("fetch " + n + " concept score result ..."); return stocksService.getConceptScoreDao().queryLastStockScoreRecord(n); }