|
|
|
@ -45,4 +45,14 @@ public class SysApiPlatformConfigServiceImpl implements ISysApiPlatformConfigSer |
|
|
|
public Optional<SysApiPlatformConfigEntity> findByAppKey(String appKey) { |
|
|
|
return Optional.ofNullable(consumerCache.get(appKey)); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Optional<SysApiPlatformConfigEntity> findByAppKeyFromDb(String appKey) { |
|
|
|
SysApiPlatformConfigEntity entity = sysApiPlatformConfigMapper.selectOne( |
|
|
|
new LambdaQueryWrapper<SysApiPlatformConfigEntity>() |
|
|
|
.eq(SysApiPlatformConfigEntity::getAppKey, appKey) |
|
|
|
.eq(SysApiPlatformConfigEntity::getStatus, "0") |
|
|
|
); |
|
|
|
return Optional.ofNullable(entity); |
|
|
|
} |
|
|
|
} |
|
|
|
|