|
@ -25,6 +25,22 @@ public class StatisticsController extends BaseController {
|
|
|
@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,"查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 指标按间隔统计
|
|
|
*
|