From 71594bd2dc9201834aa533099e9e49a9b84506cd Mon Sep 17 00:00:00 2001
From: wangfei <3597712270@qq.com>
Date: 星期四, 12 六月 2025 15:32:25 +0800
Subject: [PATCH] 新增韩语

---
 hangzhoumesParent/common/servicebase/src/main/java/com/mes/sysconfig/service/impl/SysConfigServiceImpl.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/hangzhoumesParent/common/servicebase/src/main/java/com/mes/sysconfig/service/impl/SysConfigServiceImpl.java b/hangzhoumesParent/common/servicebase/src/main/java/com/mes/sysconfig/service/impl/SysConfigServiceImpl.java
index 0617a52..db1525c 100644
--- a/hangzhoumesParent/common/servicebase/src/main/java/com/mes/sysconfig/service/impl/SysConfigServiceImpl.java
+++ b/hangzhoumesParent/common/servicebase/src/main/java/com/mes/sysconfig/service/impl/SysConfigServiceImpl.java
@@ -8,6 +8,7 @@
 import com.mes.sysconfig.entity.request.SysConfigRequest;
 import com.mes.sysconfig.mapper.SysConfigMapper;
 import com.mes.sysconfig.service.SysConfigService;
+import lombok.extern.slf4j.Slf4j;
 import org.springframework.cache.annotation.CacheEvict;
 import org.springframework.cache.annotation.CachePut;
 import org.springframework.cache.annotation.Cacheable;
@@ -22,6 +23,7 @@
  * @since 2025-04-01 15:01:27
  */
 @Service
+@Slf4j
 public class SysConfigServiceImpl extends ServiceImpl<SysConfigMapper, SysConfig> implements SysConfigService {
 
     @Override
@@ -61,5 +63,15 @@
     public Boolean deleteConfig(Serializable id) {
         return this.removeById(id);
     }
+
+    @Override
+    public Integer queryConfigValue(Serializable id) {
+        SysConfig sysConfig = this.queryConfigById(id);
+        if (sysConfig == null) {
+            log.info("绯荤粺閰嶇疆鏌ヨ涓虹┖锛岃妫�鏌ヨ閰嶇疆鏄惁瀛樺湪锛歿}", id);
+            return null;
+        }
+        return Integer.parseInt(sysConfig.getConfigValue());
+    }
 }
 

--
Gitblit v1.8.0