}
@Override
- @Cacheable(cacheNames = "dictionary_cache", key = "#p0")
+ @Cacheable(cacheNames = "dictionary_cache", key = "@tenantHolder.genKey(#dicttype)")
public List<TDictionary> getDictionaryByDictType(String dicttype) {
List<TDictionary> list = dictionaryDao.findAllByDicttype(dicttype);
if (!list.isEmpty()) {
@Override
- @CacheEvict(cacheNames = "dictionary_cache", key = "#p0")
+ @CacheEvict(cacheNames = "dictionary_cache", key = "@tenantHolder.genKey(#dicttype)")
public void updateDictionaryByDictType(String dicttype, List<TDictionary> list) {
for (TDictionary item : list) {
if (!dicttype.equals(item.getDicttype())) {
}
@Override
- @CacheEvict(cacheNames = "dictionary_cache", key = "#p0")
+ @CacheEvict(cacheNames = "dictionary_cache", key = "@tenantHolder.genKey(#dicttype)")
public void refreshCache(String dicttype) {
}
@Override
- @CacheEvict(cacheNames = "dictionary_cache", key = "'.*'", allEntries = true)
+ @CacheEvict(cacheNames = "dictionary_cache", key = "@tenantHolder.getId() + '.*'", allEntries = true)
public void refreshCache() {
}
@Override
- @Cacheable(cacheNames = "trans_code_cache")
+ @Cacheable(cacheNames = "dictionary_cache", key = "@tenantHolder.genKey('transcode')")
public List<TTranscode> getTransCode() {
List<TTranscode> list = transcodeDao.findAll();
if (!list.isEmpty()) {
}
@Override
- @Cacheable(cacheNames = "dictionary_cache", key = "#{@tenantHolder.genKey('sourcetype', sourceType)}")
+ @Cacheable(cacheNames = "dictionary_cache", key = "#{@tenantHolder.genKey('sourcetype', #sourceType)}")
public TSourceType getSourceType(String sourceType) {
if (!StringUtil.isEmpty(sourceType)) {
return sourceTypeDao.getBySourceType(sourceType.trim());
}
@Override
- @CacheEvict(cacheNames = "dictionary_cache", key = "@tenantHolder.genKey('sourcetype', sourceType.sourceType)")
+ @CacheEvict(cacheNames = "dictionary_cache", key = "@tenantHolder.genKey('sourcetype', #sourceType.sourceType)")
public boolean saveOrUpdateSourceType(TSourceType sourceType) {
if (null != sourceType) {
sourceType.setTenantid(TenantContext.getTenantSchema());
}
@Override
- @CacheEvict(cacheNames = "dictionary_cache", key = "@tenantHolder.genKey('sourcetype', sourceType.sourceType)")
+ @CacheEvict(cacheNames = "dictionary_cache", key = "@tenantHolder.genKey('sourcetype', #sourceType.sourceType)")
public boolean deleteSourceType(TSourceType sourceType) {
if (null != sourceType) {
sourceTypeDao.delete(sourceType);
}
@Override
- @Cacheable(cacheNames = "source_type_config_cache", key = "@tenantHolder.genKey('sourcetype_config', sourceType)")
+ @Cacheable(cacheNames = "source_type_config_cache", key = "@tenantHolder.genKey('sourcetype_config', #sourceType)")
public List<TSourceTypeConfig> getSourceTypeConfigList(String sourceType) {
if (!StringUtil.isEmpty(sourceType)) {
List<TSourceTypeConfig> list = paytypeConfigDao.getBySourceTypeOrderByConfigid(sourceType.trim());
}
@Override
- @CacheEvict(cacheNames = "source_type_config_cache", key = "@tenantHolder.genKey('sourcetype_config', sourceType)")
+ @CacheEvict(cacheNames = "source_type_config_cache", key = "@tenantHolder.genKey('sourcetype_config', #sourceType)")
public boolean saveSourceTypeConfig(String sourceType, Map<String, String> param) throws WebCheckException {
TSourceType tPaytype = getSourceType(sourceType);
if (null == tPaytype) throw new WebCheckException("支付能力[" + sourceType + "]不存在");