From a2ab48f60c56611cee0d57634706c71ef08b2f8d Mon Sep 17 00:00:00 2001
From: aijinhui <aijinhui>
Date: 星期三, 22 十一月 2023 11:57:59 +0800
Subject: [PATCH] 获取电磁锁地址
---
ard-work/src/main/java/com/ruoyi/sy/service/impl/ArdSyCarRtuServiceImpl.java | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/sy/service/impl/ArdSyCarRtuServiceImpl.java b/ard-work/src/main/java/com/ruoyi/sy/service/impl/ArdSyCarRtuServiceImpl.java
index b2a0ea3..1b4a7e1 100644
--- a/ard-work/src/main/java/com/ruoyi/sy/service/impl/ArdSyCarRtuServiceImpl.java
+++ b/ard-work/src/main/java/com/ruoyi/sy/service/impl/ArdSyCarRtuServiceImpl.java
@@ -67,9 +67,10 @@
@Override
public String url(String key) {
- QueryWrapper<SysConfig> queryWrapper = new QueryWrapper<>();
- queryWrapper.eq("config_key",key);
- SysConfig sysConfig = configMapper.selectOne(queryWrapper);
+// QueryWrapper<SysConfig> queryWrapper = new QueryWrapper<>();
+// queryWrapper.eq("config_key",key);
+// SysConfig sysConfig = configMapper.selectOne(queryWrapper);
+ SysConfig sysConfig = configMapper.checkConfigKeyUnique(key);
if(sysConfig!=null){
return sysConfig.getConfigValue();
}else {
--
Gitblit v1.9.3