同步代码
This commit is contained in:
@ -8,6 +8,9 @@ import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 气象设备实时数据
|
||||
*/
|
||||
@RestController()
|
||||
@RequestMapping("/meteorology")
|
||||
public class DeviceRealtimedataMeteorologyController {
|
||||
@ -23,4 +26,5 @@ public class DeviceRealtimedataMeteorologyController {
|
||||
public AjaxResult getLatestWeatherRealtimedata() {
|
||||
return AjaxResult.success(deviceRealtimedataMeteorologyService.getLatestWeatherRealtimedata());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -32,6 +32,9 @@ public class DeviceRealtimedataMoistureController {
|
||||
return AjaxResult.success(deviceRealtimedataMoistureService.getLatestWeatherRealtimedata(deviceId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取墒情设备列表
|
||||
*/
|
||||
@GetMapping("/weather/pullDown")
|
||||
public AjaxResult getLatestWeatherPullDown() {
|
||||
return AjaxResult.success(deviceInformationMoistureService.selectDeviceInformationMoistureList(null));
|
||||
|
@ -17,7 +17,7 @@ public class DeviceRealtimedataWormsController extends BaseController {
|
||||
* 虫情实时数据
|
||||
*/
|
||||
@Autowired
|
||||
private DeviceRealtimedataWormsServiceImpl deviceRealtimedataWormsServiceImpl;
|
||||
private DeviceRealtimedataWormsServiceImpl deviceRealtimedataWormsServiceImpl;
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user