From e12d23d4e16c6b124e787ed709e42db60d20a9c7 Mon Sep 17 00:00:00 2001 From: hzj <826100833@qq.com> Date: Mon, 28 Apr 2025 08:41:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=96=B0=E5=A2=9E=E8=AE=BE?= =?UTF-8?q?=E5=A4=87bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/CsEquipmentDeliveryServiceImpl.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsEquipmentDeliveryServiceImpl.java b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsEquipmentDeliveryServiceImpl.java index 86bc583..46ad2af 100644 --- a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsEquipmentDeliveryServiceImpl.java +++ b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsEquipmentDeliveryServiceImpl.java @@ -93,7 +93,7 @@ public class CsEquipmentDeliveryServiceImpl extends ServiceImpl queryWrapper = new LambdaQueryWrapper<>(); @@ -548,6 +548,16 @@ public class CsEquipmentDeliveryServiceImpl extends ServiceImpl{ + if (Objects.nonNull(temp)){ + //查询mqtt用户名和密码是否存在 + boolean result = mqttUserService.findMqttUser(temp.getNdid()); + if (result){ + //初始化装置mqtt连接信息(使用sha256加密) + mqttUserService.insertMqttUser(temp.getNdid()); + } + } + }); } if (!CollectionUtils.isEmpty (falseCollect)) { ExportParams exportExcel = new ExportParams ("批量导入模板(请严格按照模板标准填入数据)", "非法设备信息");