From 59481e2c88aa090d4db633a6c61a1bcfd3dbe011 Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Mon, 11 Dec 2023 10:02:47 +0800 Subject: [PATCH] chore:疾控中心小时数据接口提交 --- screen-job/src/main/java/com/moral/api/controller/PubController.java | 30 ++++++++++++++++++++++++++++-- 1 files changed, 28 insertions(+), 2 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 3a54e5b..8e734be 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 @@ -44,6 +44,8 @@ private HistoryAqiService historyAqiService; @Autowired private HistoryHourlyService historyHourlyService; + @Autowired + private HistoryMonthlyService historyMonthlyService; @GetMapping("insertHistoryDaily") @ApiOperation(value = "���������������", notes = "���������������") @@ -57,7 +59,24 @@ @GetMapping("insertHistoryFiveMinutely") @ApiOperation(value = "5������������", notes = "5������������") public ResultMessage insertHistoryFiveMinutely() { + String format = DateUtils.yyyy_MM_dd_HH_mm_EN; historyFiveMinutelyService.insertHistoryFiveMinutely(); + String s ="2023-10-13 03:35"; + String s1 ="2023-10-13 03:40"; + Date start = DateUtils.getDate(s,format); + Date end = DateUtils.getDate(s1,format); + return new ResultMessage(); + } + + @GetMapping("dateInsertHistoryHourlyJKAvg") + @ApiOperation(value = "������������", notes = "������������") + public ResultMessage dateInsertHistoryHourlyJKAvg(String start, String end) { + String format = DateUtils.yyyy_MM_dd_HH_mm_EN; +// String start ="2023-11-19 09:00"; +// String end ="2023-11-19 10:00"; +// Date start = DateUtils.getDate(s,format); +// Date end = DateUtils.getDate(s1,format); + historyHourlyService.dateInsertHistoryHourlyJKAvg(start, end); return new ResultMessage(); } @@ -70,8 +89,8 @@ @GetMapping("insertHistoryAqi") @ApiOperation(value = "������������������", notes = "������������������") - public ResultMessage insertHistoryAqi() { - historyAqiService.insertHistoryAqi(); + public ResultMessage insertHistoryAqi(String time) { + historyAqiService.insertHistoryAqi(time); return new ResultMessage(); } @@ -101,6 +120,13 @@ return new ResultMessage(); } + @GetMapping("insertHistoryMonthly") + @ApiOperation(value = "���������", notes = "���������") + public ResultMessage insertHistoryMonthly() { + historyMonthlyService.insertHistoryMonthly(); + return new ResultMessage(); + } + public static void main(String[] args) { String host = "https://pair.market.alicloudapi.com"; -- Gitblit v1.8.0