فهرست منبع

大屏接口,摄像头对接,成研数据对接

523096025 1 ماه پیش
والد
کامیت
d71331ba50

+ 20 - 0
app-admin/src/main/java/com/ruoyi/web/controller/system/LotVideoController.java

@@ -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")));
+    }
 }

+ 2 - 0
app-admin/src/main/java/com/ruoyi/web/domain/entity/LotVideo.java

@@ -60,6 +60,8 @@ public class LotVideo implements Serializable {
     private String capabilitySetName;
     private String regionIndexCode;
     private String encodeDevIndexCode;
+    private String longitude;
+    private String latitude;
 
     /**
      * 删除标志