From ec63fb17c5ba3e5b2a5a4106c25b4e249a2f980f Mon Sep 17 00:00:00 2001
From: liuhaonan <31457034@qq.com>
Date: 星期二, 22 十一月 2022 18:44:51 +0800
Subject: [PATCH] changes

---
 ximon-admin/src/main/java/com/sandu/ximon/admin/controller/PoleController.java |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 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 d03f491..bb57a49 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
@@ -62,12 +62,12 @@
         return ResponseUtil.success(poleService.updatePole(poleId, param));
     }
 
-    @PostMapping("/delete/{poleId}")
-    public ResponseVO<Object> deletePole(@PathVariable Long poleId) {
+    @PostMapping("/delete")
+    public ResponseVO<Object> deletePole(@RequestBody List<Long> poleIds) {
         if (!permissionConfig.check(MenuEnum.POLE_DELETE.getCode())) {
             return ResponseUtil.fail("缂哄皯瀵瑰簲鐢ㄦ埛鏉冮檺");
         }
-        return ResponseUtil.success(poleService.deletePole(poleId));
+        return ResponseUtil.success(poleService.deletePole(poleIds));
     }
 
     @PostMapping("/listDetail")
@@ -223,9 +223,9 @@
         if (!permissionConfig.check(MenuEnum.UNBIND.getCode())) {
             return ResponseUtil.fail("缂哄皯瀵瑰簲鐢ㄦ埛鏉冮檺");
         }
-        boolean result = poleService.unBindPole(poleId, param.getDeviceCode());
+        boolean result = poleService.unBindPole(poleId, param.getDeviceCode(), param.getDeviceType());
         if (result) {
-            //璁惧绫诲瀷锛�0璺伅锛�1led灞忓箷锛�2鍏呯數妗╋紝3澶ф皵鐩戞祴锛�4姘磋川鐩戞祴锛�5ip闊虫煴锛�6lcd骞垮憡鏈猴紝7鎽勫儚澶达紝8鏉嗕綋鍊炬祴锛�9涓�閿晳鍔�, 10鐔欒, 11鍐滆��
+            //璁惧绫诲瀷锛�0璺伅锛�1led灞忓箷锛�2鍏呯數妗╋紝3澶ф皵鐩戞祴锛�4姘磋川鐩戞祴锛�5ip闊虫煴锛�6lcd骞垮憡鏈猴紝7鎽勫儚澶达紝8鏉嗕綋鍊炬祴锛�9涓�閿晳鍔�, 10鐔欒, 11鍐滆��, 12鏂拌鐡�
             switch (param.getDeviceType().toString()) {
                 case PoleBindingEnums.LIGHT:
                     //鍒犻櫎鐏潌鐨刣evicescode
@@ -257,6 +257,8 @@
                 case PoleBindingEnums.XIXUN:
                     break;
                 case PoleBindingEnums.ATMOSPHERIC_NONG_GENG:
+                    break;
+                case PoleBindingEnums.NEW_NOVA:
                     break;
                 default:
                     break;
@@ -397,7 +399,7 @@
             throw new BusinessException("鎾斁鏃堕棿闇�澶т簬闆朵笖灏忎簬86400000 !");
         }
         VnnoxResult vnnoxResult = poleService.pushAirDataToNova(param);
-        if (vnnoxResult == null && vnnoxResult.getSuccess() != null && vnnoxResult.getSuccess().size() != 0) {
+        if (vnnoxResult != null && vnnoxResult.getSuccess() != null && !vnnoxResult.getSuccess().isEmpty()) {
             return ResponseUtil.success("鎺ㄩ�佹垚鍔�");
         } else {
             return ResponseUtil.fail("鎺ㄩ�佸け璐�");

--
Gitblit v1.9.3