Commit db866c53 by 黄明步

.

parent a84ffea7
...@@ -33,7 +33,7 @@ public class ConfigAbilityServiceImpl implements ConfigAbilityService { ...@@ -33,7 +33,7 @@ public class ConfigAbilityServiceImpl implements ConfigAbilityService {
if (ObjUtil.isNotNull(obj)) { if (ObjUtil.isNotNull(obj)) {
return JSONUtil.toList(obj.toString(), ConfigAbility.class); return JSONUtil.toList(obj.toString(), ConfigAbility.class);
} else { } else {
List<ConfigAbility> list = configAbilityMapper.selectList(Wrappers.lambdaQuery(ConfigAbility.class)); List<ConfigAbility> list = configAbilityMapper.selectList(Wrappers.lambdaQuery(ConfigAbility.class).isNotNull(ConfigAbility::getParentId).in(ConfigAbility::getSdkType, "kv", "ft", "tb"));
redisService.set(RedisConstant.CONFIG_ABILITY_ALL, list, 1, TimeUnit.DAYS); redisService.set(RedisConstant.CONFIG_ABILITY_ALL, list, 1, TimeUnit.DAYS);
return list; return list;
} }
......
...@@ -76,6 +76,7 @@ public class ConfigApplicationServiceImpl implements ConfigApplicationService { ...@@ -76,6 +76,7 @@ public class ConfigApplicationServiceImpl implements ConfigApplicationService {
int result = this.configApplicationMapper.updateById(info); int result = this.configApplicationMapper.updateById(info);
if (result > 0) { if (result > 0) {
redisService.remove(RedisConstant.CONFIG_APPLICATION_ALL); redisService.remove(RedisConstant.CONFIG_APPLICATION_ALL);
redisService.remove(RedisConstant.CONFIG_ABILITY_ALL);
//直接删掉旧的重新新增 //直接删掉旧的重新新增
//先删除 //先删除
...@@ -158,6 +159,7 @@ public class ConfigApplicationServiceImpl implements ConfigApplicationService { ...@@ -158,6 +159,7 @@ public class ConfigApplicationServiceImpl implements ConfigApplicationService {
result = this.configApplicationMapper.insert(info); result = this.configApplicationMapper.insert(info);
if (result >= 1) { if (result >= 1) {
redisService.remove(RedisConstant.CONFIG_APPLICATION_ALL); redisService.remove(RedisConstant.CONFIG_APPLICATION_ALL);
redisService.remove(RedisConstant.CONFIG_ABILITY_ALL);
//保存应用功能关联 //保存应用功能关联
this.batchSaveConfigAppAbility(configAppVo, info.getId()); this.batchSaveConfigAppAbility(configAppVo, info.getId());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment