wangliang преди 2 години
родител
ревизия
3ad31f5614
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      themis-business/src/main/java/com/qmth/themis/business/service/impl/CacheServiceImpl.java

+ 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));
     }
 
     /**