|
@@ -9,6 +9,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
|
+import java.util.Date;
|
|
|
|
|
|
@RequestMapping("AppDigitalForestController")
|
|
@RequestMapping("AppDigitalForestController")
|
|
@RestController
|
|
@RestController
|
|
@@ -27,6 +29,7 @@ public class AppDigitalForestController {
|
|
@ApiOperation(value = "查询天气信息", notes = "查询天气信息")
|
|
@ApiOperation(value = "查询天气信息", notes = "查询天气信息")
|
|
@GetMapping("mainPage")
|
|
@GetMapping("mainPage")
|
|
public AjaxResult mainPage(AppDigitalForestWeather appDigitalForestWeather) {
|
|
public AjaxResult mainPage(AppDigitalForestWeather appDigitalForestWeather) {
|
|
|
|
+ appDigitalForestWeather.setWeatherinformationTime(new SimpleDateFormat("yyyy-MM-dd").format(new Date()));
|
|
return remoteDataBaseService.selectWeather(appDigitalForestWeather);
|
|
return remoteDataBaseService.selectWeather(appDigitalForestWeather);
|
|
}
|
|
}
|
|
|
|
|