修改了sourcetype_config cache
authorTang Cheng <cheng.tang@supwisdom.com>
Mon, 15 Jul 2019 08:12:05 +0000 (16:12 +0800)
committerTang Cheng <cheng.tang@supwisdom.com>
Mon, 15 Jul 2019 08:12:10 +0000 (16:12 +0800)
payapi/src/main/java/com/supwisdom/dlpay/system/service/impl/ParamServiceImpl.java

index 3d239c6..191697e 100644 (file)
@@ -200,7 +200,7 @@ public class ParamServiceImpl implements ParamService {
   }
 
   @Override
-  @Cacheable(cacheNames = "source_type_config_cache", key = "@tenantHolder.genKey('sourcetype_config', #sourceType)")
+  @Cacheable(cacheNames = "dictionary_cache", key = "@tenantHolder.genKey('sourcetype_config', #sourceType)")
   public List<TSourceTypeConfig> getSourceTypeConfigList(String sourceType) {
     if (!StringUtil.isEmpty(sourceType)) {
       List<TSourceTypeConfig> list = paytypeConfigDao.getBySourceTypeOrderByConfigid(sourceType.trim());
@@ -211,7 +211,7 @@ public class ParamServiceImpl implements ParamService {
   }
 
   @Override
-  @CacheEvict(cacheNames = "source_type_config_cache", key = "@tenantHolder.genKey('sourcetype_config', #sourceType)")
+  @CacheEvict(cacheNames = "dictionary_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 + "]不存在");