| | |
| | | package com.moral.api.controller; |
| | | |
| | | import com.moral.api.service.HistoryDailyService; |
| | | import com.moral.api.service.HistoryFiveMinutelyService; |
| | | import com.moral.constant.ResultMessage; |
| | | import com.moral.util.DateUtils; |
| | | import io.swagger.annotations.Api; |
| | |
| | | public class PubController { |
| | | @Autowired |
| | | private HistoryDailyService historyDailyService; |
| | | @Autowired |
| | | private HistoryFiveMinutelyService historyFiveMinutelyService; |
| | | |
| | | @GetMapping("insertHistoryDaily") |
| | | @ApiOperation(value = "天数据补录", notes = "天数据补录") |
| | |
| | | return new ResultMessage(); |
| | | } |
| | | |
| | | @GetMapping("insertHistoryFiveMinutely") |
| | | @ApiOperation(value = "5分钟数据", notes = "5分钟数据") |
| | | public ResultMessage insertHistoryFiveMinutely() { |
| | | historyFiveMinutelyService.insertHistoryFiveMinutely(); |
| | | return new ResultMessage(); |
| | | } |
| | | |
| | | |
| | | |
| | | public static void main(String[] args) { |
| | | String s = "2023-9-01"; |
| | | Date d = DateUtils.getDate(s,"yyyy-MM-dd"); |