瀏覽代碼

哨兵-阀门-添加可视化接口

15044148858 4 天之前
父節點
當前提交
5a5638a6d0

+ 18 - 0
src/main/java/com/sooka/sponest/construction/sentinel/controller/DeviceInformationController.java

@@ -94,4 +94,22 @@ public class DeviceInformationController extends BaseController {
         return deviceInformationService.updataValveOpening(bridgeDeviceInformation.getId(), bridgeDeviceInformation.getValveOpening());
     }
 
+    /**
+     * 可视化查询智慧阀门列表
+     */
+    @GetMapping("/selectFmList")
+    public TableDataInfo selectFmList(DeviceInformation bridgeDeviceInformation) {
+        startPage();
+        List<DeviceInformation> list = deviceInformationService.selectDeviceInformationList(bridgeDeviceInformation);
+        return getDataTable(list);
+    }
+
+    /**
+     * 可视化获取智慧阀门详细信息
+     */
+    @GetMapping(value = "/getFmInfo/{id}")
+    public AjaxResult getFmInfo(@PathVariable("id") Long id) {
+        return AjaxResult.success(deviceInformationService.selectDeviceInformationById(id));
+    }
+
 }