From 25e3153ff1256c321d4985070b5f07db930026ec Mon Sep 17 00:00:00 2001
From: zhanzhiqin <895896009@qq.com>
Date: 星期三, 20 四月 2022 11:48:47 +0800
Subject: [PATCH] fix

---
 ximon-admin/src/main/java/com/sandu/ximon/admin/service/C3ChargingService.java |   34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/ximon-admin/src/main/java/com/sandu/ximon/admin/service/C3ChargingService.java b/ximon-admin/src/main/java/com/sandu/ximon/admin/service/C3ChargingService.java
index ae16224..f5ed65b 100644
--- a/ximon-admin/src/main/java/com/sandu/ximon/admin/service/C3ChargingService.java
+++ b/ximon-admin/src/main/java/com/sandu/ximon/admin/service/C3ChargingService.java
@@ -108,23 +108,23 @@
                 c3mChargingChargeService.initCharge((c3mCharging1.getC3Id()).intValue());
             }
         }
-        /**
-         * 娣诲姞缁戝畾鍏崇郴寮�濮�
-         */
-        Pole pole = poleService.getOne(Wrappers.lambdaQuery(Pole.class).eq(Pole::getDeviceCode, deviceName));
-        if (pole == null) {
-            Pole pole1 = new Pole();
-            pole1.setDeviceCode(deviceName);
-            pole1.setPoleName(deviceName);
-            pole1.setPoleCode(poleService.generatePoleCode());
-            poleService.save(pole1);
-        }
-
-        Long poleId = poleService.getOne(Wrappers.lambdaQuery(Pole.class).eq(Pole::getDeviceCode, deviceName)).getId();
-        PoleBindingParam poleBindingParam = new PoleBindingParam();
-        poleBindingParam.setDeviceType(2);
-        poleBindingParam.setDeviceCode(mcuUdid);
-        bindingService.bindPole(poleId, poleBindingParam);
+//        /**
+//         * 娣诲姞缁戝畾鍏崇郴寮�濮�
+//         */
+//        Pole pole = poleService.getOne(Wrappers.lambdaQuery(Pole.class).eq(Pole::getDeviceCode, deviceName));
+//        if (pole == null) {
+//            Pole pole1 = new Pole();
+//            pole1.setDeviceCode(deviceName);
+//            pole1.setPoleName(deviceName);
+//            pole1.setPoleCode(poleService.generatePoleCode());
+//            poleService.save(pole1);
+//        }
+//
+//        Long poleId = poleService.getOne(Wrappers.lambdaQuery(Pole.class).eq(Pole::getDeviceCode, deviceName)).getId();
+//        PoleBindingParam poleBindingParam = new PoleBindingParam();
+//        poleBindingParam.setDeviceType(2);
+//        poleBindingParam.setDeviceCode(mcuUdid);
+//        bindingService.bindPole(poleId, poleBindingParam);
 
         /**
          * 娣诲姞缁戝畾鍏崇郴缁撴潫

--
Gitblit v1.9.3