From d724176dbcf033a096d7dcbd864c05485f021fbb Mon Sep 17 00:00:00 2001
From: zhoushihao <zsh19950802@163.com>
Date: 星期三, 17 十二月 2025 08:30:56 +0800
Subject: [PATCH] 1、 钢化前钢化出片逻辑调整,避免卧转立信号对调度任务的影响 2、修改出片方式,当玻璃未在关系表时,默认出一片 3、中空新增进片线路校验,避免钢化重复报工

---
 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