|
@@ -160,6 +160,12 @@ public class TestCont {
|
|
|
return Response.ok(testService.save(data));
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("根据deviceId报警获取")
|
|
|
+ @RequestMapping(value = "/giveAlarm/{deviceId}", method = RequestMethod.GET)
|
|
|
+ public Response getGiveAlarmByDeviceId(@PathVariable long deviceId) {
|
|
|
+ return Response.ok(testService.getGiveAlarmByDeviceId(deviceId));
|
|
|
+ }
|
|
|
+
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
|
@ApiOperation("设备统计获取")
|
|
@@ -174,6 +180,46 @@ public class TestCont {
|
|
|
return Response.ok(testService.save(data));
|
|
|
}
|
|
|
|
|
|
+ //---------------------------------------------------------------------------------------------
|
|
|
+
|
|
|
+ @ApiOperation("设备传感器统计获取")
|
|
|
+ @RequestMapping(value = "/deviceSensor/count/{deviceId}", method = RequestMethod.GET)
|
|
|
+ public Response getDeviceSensorCount(@PathVariable long deviceId) {
|
|
|
+ return Response.ok(testService.getDeviceSensorCount(deviceId));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation("设备传感器获取")
|
|
|
+ @RequestMapping(value = "/deviceSensor/{deviceId}", method = RequestMethod.GET)
|
|
|
+ public Response getDeviceSensor(@PathVariable long deviceId) {
|
|
|
+ return Response.ok(testService.getDeviceSensor(deviceId));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation("设备传感器保存")
|
|
|
+ @RequestMapping(value = "/deviceSensor/save", method = RequestMethod.POST)
|
|
|
+ public Response save(@RequestBody DeviceSensor data) {
|
|
|
+ return Response.ok(testService.save(data));
|
|
|
+ }
|
|
|
+
|
|
|
+ //---------------------------------------------------------------------------------------------
|
|
|
+
|
|
|
+ @ApiOperation("设备传感器实时数据获取")
|
|
|
+ @RequestMapping(value = "/deviceLiveData/{deviceId}", method = RequestMethod.GET)
|
|
|
+ public Response getDeviceLiveData(@PathVariable long deviceId) {
|
|
|
+ return Response.ok(testService.getDeviceLiveData(deviceId));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation("设备传感器历史数据走势")
|
|
|
+ @RequestMapping(value = "/deviceLiveData/history/{deviceId}", method = RequestMethod.GET)
|
|
|
+ public Response getDeviceLiveDataHistory(@PathVariable long deviceId) {
|
|
|
+ return Response.ok(testService.getDeviceLiveDataHistory(deviceId));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation("设备传感器实时数据保存")
|
|
|
+ @RequestMapping(value = "/deviceLiveData/save", method = RequestMethod.POST)
|
|
|
+ public Response save(@RequestBody DeviceLiveData data) {
|
|
|
+ return Response.ok(testService.save(data));
|
|
|
+ }
|
|
|
+
|
|
|
//-----------------------------------------------------------------------------------------------
|
|
|
|
|
|
@ApiOperation("车辆通行记录获取")
|