|
@ -1,5 +1,6 @@
|
|
|
package com.yihu.wlyy.web.statistic;
|
|
|
|
|
|
import com.yihu.wlyy.service.app.statistics.StatisticsService;
|
|
|
import com.yihu.wlyy.service.app.statisticsES.StatisticsESService;
|
|
|
import com.yihu.wlyy.util.Constant;
|
|
|
import com.yihu.wlyy.web.BaseController;
|
|
@ -25,7 +26,23 @@ public class EsStatisticsController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
StatisticsESService statisticsESService;
|
|
|
|
|
|
@Autowired
|
|
|
StatisticsService statisticsService;
|
|
|
/**
|
|
|
* 获取统计时间
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/time")
|
|
|
@ResponseBody
|
|
|
public String getStatisticsTime() {
|
|
|
try {
|
|
|
return write(200, "查询成功", "data", statisticsService.getStatisticsTime());
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* 指标按间隔统计 增量
|
|
|
* 按年度统计是根据前端传的 startDate
|
|
@ -356,4 +373,6 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|