| | |
| | | public List<TaoBaoUnionConfig> getConfigByType(int type) {
|
| | | return taoBaoUnionConfigMapper.selectByType(type);
|
| | | }
|
| | |
|
| | | @Cacheable(value = "configCache", key = "'getConfigByType-'+#type")
|
| | | @Override
|
| | | public List<TaoBaoUnionConfig> getConfigByTypeCache(int type) {
|
| | |
| | | public TaoBaoUnionConfig getConfigByAppId(String appId) {
|
| | | return taoBaoUnionConfigMapper.selectByAppId(appId);
|
| | | }
|
| | |
|
| | | @Cacheable(value = "configCache", key = "'getConfigByAppId-'+#appId")
|
| | | @Override
|
| | | public TaoBaoUnionConfig getConfigByAppIdCache(String appId) {
|
| | | return getConfigByAppId(appId);
|
| | | }
|
| | |
|
| | | @Cacheable(value = "configCache", key = "'getConfigByAppKeyCache-'+#appKey")
|
| | | @Override
|
| | | public TaoBaoUnionConfig getConfigByAppKeyCache(String appKey) {
|
| | | return taoBaoUnionConfigMapper.selectByAppKey(appKey);
|
| | | }
|
| | |
|
| | | }
|