| | |
| | | return value;
|
| | | }
|
| | |
|
| | | @Override
|
| | | @Cacheable(value = "config", key = "'getValueByKey-'+#key+'-'+#system")
|
| | | public String getValue(ConfigKeyEnum key, SystemEnum system) {
|
| | | List<Config> list = configMapper.listByKey(key.getKey(), null, null,system);
|
| | | if (list.size() == 0) {
|
| | | return null;
|
| | | }
|
| | | String value = list.get(0).getValue();
|
| | | return value;
|
| | | }
|
| | |
|
| | |
|
| | | @Cacheable(value = "config", key = "'getByVersion'+'-'+#key+'-'+#platform+'-'+#version+'-'+#system ")
|
| | | public String getByVersion(String key, String platform, int version, SystemEnum system) {
|
| | | Integer minAndroidVersion = null;
|