From 1bcef6a688ffbee58c347bbd87e1b5db08075041 Mon Sep 17 00:00:00 2001
From: zhanzhiqin <895896009@qq.com>
Date: 星期三, 13 四月 2022 18:25:02 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 ximon-admin/src/main/java/com/sandu/ximon/admin/controller/PoleController.java |   26 +++++++++++++++++++++-----
 1 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/ximon-admin/src/main/java/com/sandu/ximon/admin/controller/PoleController.java b/ximon-admin/src/main/java/com/sandu/ximon/admin/controller/PoleController.java
index 79192fc..0f43a70 100644
--- a/ximon-admin/src/main/java/com/sandu/ximon/admin/controller/PoleController.java
+++ b/ximon-admin/src/main/java/com/sandu/ximon/admin/controller/PoleController.java
@@ -208,11 +208,27 @@
     /**
      * 鏌ユ壘鑷繁鎷ユ湁鐨勭伅鏉�
      */
-    @PostMapping("/getOwnerPole")
-    public ResponseVO<Object> getOwnerPole(BaseConditionVO baseConditionVO, @RequestParam(value = "keyword", required = false) String keyword) {
-        //public ResponseVO<Object> setMac() {
-        return ResponseUtil.success(poleService.getOwnerPole(baseConditionVO,keyword));
-        // return ResponseUtil.success(poleService.setMac());
+    @PostMapping("/getOwnerPole/{cilentId}")
+    public ResponseVO<Object> getOwnerPole(BaseConditionVO baseConditionVO, @RequestParam(value = "keyword", required = false) String keyword
+            ,@PathVariable Long cilentId) {
+        List<Pole> results = poleService.getOwnerPole(baseConditionVO, keyword, cilentId);
+//        CommonPage commonPage = CommonPage.restPage(results);
+//        int size = results.size();
+//        commonPage.setTotal((long) size);
+//        commonPage.setTotalPage(size / baseConditionVO.getPageSize() + 1);
+//        if (size % baseConditionVO.getPageSize() == 0) {
+//            commonPage.setTotalPage(size / baseConditionVO.getPageSize());
+//        }
+//        return ResponseUtil.success(commonPage);
+        return ResponseUtil.success(results);
+    }
+
+    /**
+     * 鏌ョ湅鐏潌缁戝畾鐨勮澶�
+     */
+    @PostMapping("/getPoleBindDevice/{poleId}")
+    public ResponseVO<Object> getPoleBindDevice(@PathVariable Long poleId) {
+        return ResponseUtil.success(poleService.getBindByPoleId(poleId));
     }
 
 

--
Gitblit v1.9.3