Commit db866c53 by 黄明步

.

parent a84ffea7
......@@ -33,7 +33,7 @@ public class ConfigAbilityServiceImpl implements ConfigAbilityService {
if (ObjUtil.isNotNull(obj)) {
return JSONUtil.toList(obj.toString(), ConfigAbility.class);
} 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);
return list;
}
......
......@@ -76,6 +76,7 @@ public class ConfigApplicationServiceImpl implements ConfigApplicationService {
int result = this.configApplicationMapper.updateById(info);
if (result > 0) {
redisService.remove(RedisConstant.CONFIG_APPLICATION_ALL);
redisService.remove(RedisConstant.CONFIG_ABILITY_ALL);
//直接删掉旧的重新新增
//先删除
......@@ -158,6 +159,7 @@ public class ConfigApplicationServiceImpl implements ConfigApplicationService {
result = this.configApplicationMapper.insert(info);
if (result >= 1) {
redisService.remove(RedisConstant.CONFIG_APPLICATION_ALL);
redisService.remove(RedisConstant.CONFIG_ABILITY_ALL);
//保存应用功能关联
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