测试提交

This commit is contained in:
renkaige
2019-01-10 19:10:09 +06:00
parent 6d9f4e10a2
commit fbce4e8364
6 changed files with 38 additions and 10 deletions

View File

@@ -258,7 +258,7 @@ public class ConfigSourcesService extends BaseService {
}
}
logger.info("---------------调用Redis maat配置新增接口---------------------");
configRedisService.saveMaatConfig(configMap);
configRedisService.saveMaatConfig(configMap,new ArrayList<>(commonGroupIdSet));
}
/**
@@ -364,7 +364,7 @@ public class ConfigSourcesService extends BaseService {
compileMap.put(config.getService(), idList);
}
if (isValid == 0) {
List<ConfigGroupRelation> keepGroupIdList = config.getKeepGroupIdList();
List<ConfigGroupRelation> keepGroupIdList = config.getKeepGroupList();
if (keepGroupIdList != null && keepGroupIdList.size() > 0) {
for (ConfigGroupRelation group : keepGroupIdList) {
if (compileGroupMap.containsKey(config.getCompileId())) {
@@ -435,7 +435,7 @@ public class ConfigSourcesService extends BaseService {
throw new RestServiceException("编译配置id为" + config.getCompileId() + "的IsValid字段不能为空",
RestBusinessCode.IsValidIsNull.getValue());
}
if (isValid == 1 && (config.getKeepGroupIdList() != null && config.getKeepGroupIdList().size() > 0)) {
if (isValid == 1 && (config.getKeepGroupList() != null && config.getKeepGroupList().size() > 0)) {
throw new RestServiceException("编译配置id为" + config.getCompileId() + "的配置在将状态改为生效时keepGroupIdList必须为空",
RestBusinessCode.GroupidShouldNull.getValue());
}