From 44251a92dc85a93eff59704b40b07830bde8d16f Mon Sep 17 00:00:00 2001 From: cjl <276999030@qq.com> Date: Thu, 27 Jul 2023 15:38:18 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/cjl' into qa --- screen-job/src/main/java/com/moral/api/controller/PubController.java | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 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 82550d4..16805cd 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 @@ -1,6 +1,9 @@ package com.moral.api.controller; +import com.moral.api.service.HistoryAqiService; import com.moral.api.service.HistoryDailyService; +import com.moral.api.service.HistoryFiveMinutelyService; +import com.moral.api.service.HistoryHourlyService; import com.moral.constant.ResultMessage; import com.moral.util.DateUtils; import io.swagger.annotations.Api; @@ -29,6 +32,13 @@ public class PubController { @Autowired private HistoryDailyService historyDailyService; + @Autowired + private HistoryFiveMinutelyService historyFiveMinutelyService; + + @Autowired + private HistoryAqiService historyAqiService; + @Autowired + private HistoryHourlyService historyHourlyService; @GetMapping("insertHistoryDaily") @ApiOperation(value = "���������������", notes = "���������������") @@ -39,6 +49,35 @@ 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) { + historyFiveMinutelyService.insertHistoryFiveMinutely(yz,mac); + return new ResultMessage(); + } + + @GetMapping("insertHistoryAqi") + @ApiOperation(value = "������������������", notes = "������������������") + public ResultMessage insertHistoryAqi() { + historyAqiService.insertHistoryAqi(); + return new ResultMessage(); + } + + @GetMapping("dateToChangShu") + @ApiOperation(value = "������������������", notes = "������������������") + public ResultMessage dateToChangShu() { + historyHourlyService.dateToChangShu(null); + return new ResultMessage(); + } + + public static void main(String[] args) { String s = "2023-9-01"; Date d = DateUtils.getDate(s,"yyyy-MM-dd"); -- Gitblit v1.8.0