From 74e253770f0c321ad47bb68e490e4a118f35fd35 Mon Sep 17 00:00:00 2001
From: liuhaonan <31457034@qq.com>
Date: 星期五, 22 七月 2022 16:29:40 +0800
Subject: [PATCH] 优化

---
 ximon-admin/src/main/java/com/sandu/ximon/admin/service/PoleService.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ximon-admin/src/main/java/com/sandu/ximon/admin/service/PoleService.java b/ximon-admin/src/main/java/com/sandu/ximon/admin/service/PoleService.java
index c41fbda..bd65b3b 100644
--- a/ximon-admin/src/main/java/com/sandu/ximon/admin/service/PoleService.java
+++ b/ximon-admin/src/main/java/com/sandu/ximon/admin/service/PoleService.java
@@ -569,10 +569,10 @@
      */
     public boolean poleReset(Long id) {
         Pole byId = getById(id);
-        String deviceName = byId.getDeviceCode();
         if (byId == null) {
             throw new BusinessException("鏈壘鍒拌鐏潌");
         }
+        String deviceName = byId.getDeviceCode();
         if (deviceName.isEmpty()) {
             throw new BusinessException("璇ョ伅鏉哅ca涓虹┖");
         }
@@ -708,8 +708,8 @@
         /**
          * 瀹炰綋鐏潌娉ㄥ唽鏃ュ織璁板綍寮�濮�
          */
-//        String content = "{鐏潌ID锛�" + pole.getId() + ",鐏潌缂栧彿锛�" + pole.getPoleCode() + ",鐏潌鍚嶇О锛�" + pole.getPoleName() + ",鐏潌绫诲瀷锛�" + pole.getDeviceType() + ",鐏潌MAC锛�" + pole.getDeviceCode() + " }";
-//        StoreOperationRecordsUtils.storeOperationData(null, null, "瀹炰綋鐏潌娉ㄥ唽", content);
+        String content = "{鐏潌ID锛�" + pole.getId() + ",鐏潌缂栧彿锛�" + pole.getPoleCode() + ",鐏潌鍚嶇О锛�" + pole.getPoleName() + ",鐏潌绫诲瀷锛�" + pole.getDeviceType() + ",鐏潌MAC锛�" + pole.getDeviceCode() + " }";
+        StoreOperationRecordsUtils.storeOperationData(null, null, "瀹炰綋鐏潌娉ㄥ唽", content);
         /**
          * 瀹炰綋鐏潌娉ㄥ唽鏃ュ織璁板綍缁撴潫
          */

--
Gitblit v1.9.3