浏览代码

bug修复

wangliang 2 年之前
父节点
当前提交
3ad31f5614

+ 1 - 1
themis-business/src/main/java/com/qmth/themis/business/service/impl/CacheServiceImpl.java

@@ -354,7 +354,7 @@ public class CacheServiceImpl implements CacheService {
     @Override
     @CachePut(value = SystemConstant.sysConfigCache, key = "#p0", condition = "#result != null")
     public SysConfig updateSysConfigCache(String key) {
-        return sysConfigService.getById(new QueryWrapper<SysConfig>().lambda().eq(SysConfig::getConfigKey, key));
+        return sysConfigService.getOne(new QueryWrapper<SysConfig>().lambda().eq(SysConfig::getConfigKey, key));
     }
 
     /**