From b441506b6e6d9f82cb95df627a6c58ff16b5e236 Mon Sep 17 00:00:00 2001 From: cjl <276999030@qq.com> Date: Thu, 12 Oct 2023 16:59:11 +0800 Subject: [PATCH] fix:尘负荷数据调整 --- screen-job/src/main/java/com/moral/api/controller/PubController.java | 27 +++++++++++++++++---------- 1 files changed, 17 insertions(+), 10 deletions(-) diff --git a/screen-job/src/main/java/com/moral/api/controller/PubController.java b/screen-job/src/main/java/com/moral/api/controller/PubController.java index 606c6a3..5771894 100644 --- a/screen-job/src/main/java/com/moral/api/controller/PubController.java +++ b/screen-job/src/main/java/com/moral/api/controller/PubController.java @@ -34,6 +34,9 @@ private HistoryDailyService historyDailyService; @Autowired private HistoryFiveMinutelyService historyFiveMinutelyService; + + @Autowired + private CityWeatherService cityWeatherService; @Autowired private ForecastService forecastService; @@ -50,14 +53,6 @@ int i = 0; return new ResultMessage(); } - - @GetMapping("insertHistoryFiveMinutely") - @ApiOperation(value = "5������������", notes = "5������������") - public ResultMessage insertHistoryFiveMinutely() { - historyFiveMinutelyService.insertHistoryFiveMinutely(); - return new ResultMessage(); - } - @GetMapping("FiveMinutelyTest") @ApiOperation(value = "5������������1", notes = "5������������1") public ResultMessage FiveMinutelyTest(String yz,String mac) { @@ -67,11 +62,17 @@ @GetMapping("insertHistoryAqi") @ApiOperation(value = "������������������", notes = "������������������") - public ResultMessage insertHistoryAqi() { - historyAqiService.insertHistoryAqi(); + public ResultMessage insertHistoryAqi(String time) { + historyAqiService.insertHistoryAqi(time); return new ResultMessage(); } + @GetMapping("insertHCHistoryAqi") + @ApiOperation(value = "������������", notes = "������������") + public ResultMessage insertHCHistoryAqi() { + historyAqiService.insertHCHistoryAqi(); + return new ResultMessage(); + } @GetMapping("dateToChangShu") @ApiOperation(value = "������������������", notes = "������������������") public ResultMessage dateToChangShu() { @@ -85,6 +86,12 @@ forecastService.forecastO3(); return new ResultMessage(); } + @GetMapping("insertCityWeather") + @ApiOperation(value = "������������������������", notes = "������������������������") + public ResultMessage insertCityWeather() { + cityWeatherService.insertCityWeather(); + return new ResultMessage(); + } public static void main(String[] args) { -- Gitblit v1.8.0