コード例 #1
0
 @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);
 }
コード例 #2
0
 @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);
 }