fix:app指数接口增加economictimes数据源兜底

This commit is contained in:
xiaoliuhu
2024-04-20 19:11:47 +08:00
parent 4b25467bd2
commit ece782497f
4 changed files with 290 additions and 5 deletions

View File

@@ -242,6 +242,15 @@ public class StockApiController {
return this.stockService.getIndexByBtoday();
});
}
@RequestMapping({"getIndiaIndexByEttech.do"})
@ApiOperation(value = "印度--获取指定指数信息-Ettech", httpMethod = "GET")
@ResponseBody
public ServerResponse getIndiaIndexByEttech() {
String INDEX_CODE = "TODAY_INDEX";
return RequestCacheUtils.cache("getIndiaIndexByEttech.do", INDEX_CODE, (string) -> {
return this.stockService.getEttechcharts();
});
}
//根据股票id查询 股票指数、大盘指数信息
@RequestMapping({"getMarketByStockGid.do"})