| | |
| | | package com.yssh.controller; |
| | | |
| | | import com.yssh.entity.Weather; |
| | | import com.yssh.service.IWeatherService; |
| | | import com.yssh.service.WeatherService; |
| | | import com.yssh.utils.Result; |
| | | |
| | | import io.swagger.annotations.Api; |
| | |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | |
| | | @RequestMapping("/weather") |
| | | @SuppressWarnings("rawtypes") |
| | | public class WeatherController { |
| | | @Autowired |
| | | private IWeatherService weatherService; |
| | | @Resource |
| | | private WeatherService weatherService; |
| | | |
| | | private SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd-HH:00:00"); |
| | | |