|
|
@@ -252,4 +252,24 @@ public class LotVideoController {
|
|
|
List<LotVideo> listLotVideoVOByPage = lotVideoService.listLotVideo(lotVideoQueryRequest);
|
|
|
return success(listLotVideoVOByPage);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation("更新监控摄像头的经纬度接口")
|
|
|
+ @PutMapping("/put")
|
|
|
+ public AjaxResult put(@RequestBody Map<String , Object> map) {
|
|
|
+ int id = (int)map.get("id");
|
|
|
+ String longitude = (String)map.get("longitude");
|
|
|
+ String latitude = (String)map.get("latitude");
|
|
|
+ LotVideo lotVideo = new LotVideo();
|
|
|
+ lotVideo.setId(id);
|
|
|
+ lotVideo.setLongitude(longitude);
|
|
|
+ lotVideo.setLatitude(latitude);
|
|
|
+ lotVideoService.updateById(lotVideo);
|
|
|
+
|
|
|
+ return success();
|
|
|
+ }
|
|
|
+ @ApiOperation("获取摄像头详情接口")
|
|
|
+ @PutMapping("/getById")
|
|
|
+ public AjaxResult getById(@RequestBody Map<String , Integer> map) {
|
|
|
+ return success(lotVideoService.getById( map.get("id")));
|
|
|
+ }
|
|
|
}
|