jinpengyong
2023-12-11 59481e2c88aa090d4db633a6c61a1bcfd3dbe011
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 = "天数据补录")
@@ -63,6 +65,18 @@
        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();
    }
@@ -106,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";