|
@@ -22,4 +22,15 @@ public class StatisticController {
|
|
|
log.info("收到statistic请求");
|
|
|
return statisticService.getStatistic().toString()+"\n";
|
|
|
}
|
|
|
+ @RequestMapping("/logShowStatistic")
|
|
|
+ public String logShowStatistic(@RequestParam String mode) {
|
|
|
+ log.info("收到logShowStatistic请求");
|
|
|
+ if("enable".equals(mode)) {
|
|
|
+ statisticService.setShowStatisticAfterInsertData(true);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ statisticService.setShowStatisticAfterInsertData(false);
|
|
|
+ }
|
|
|
+ return "成功";
|
|
|
+ }
|
|
|
}
|