mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
支持预发布、灰度发布
This commit is contained in:
@@ -211,6 +211,7 @@ public class ServiceApi {
|
||||
registryService.setMetadata(param.buildServiceInstance(), envPre.getKey(), envPre.getValue());
|
||||
}
|
||||
|
||||
String serviceId = param.getServiceId();
|
||||
String instanceId = param.getInstanceId();
|
||||
String userKeyContent = param.getUserKeyContent();
|
||||
String nameVersionContent = param.getNameVersionContent();
|
||||
@@ -218,6 +219,7 @@ public class ServiceApi {
|
||||
ConfigGrayUserkey configGrayUserkey = configGrayUserkeyMapper.getByColumn("instance_id", instanceId);
|
||||
if (configGrayUserkey == null) {
|
||||
configGrayUserkey = new ConfigGrayUserkey();
|
||||
configGrayUserkey.setServiceId(serviceId);
|
||||
configGrayUserkey.setInstanceId(instanceId);
|
||||
configGrayUserkey.setUserKeyContent(userKeyContent);
|
||||
configGrayUserkey.setNameVersionContent(nameVersionContent);
|
||||
|
@@ -25,6 +25,9 @@ public class ConfigGrayUserkey {
|
||||
/** 数据库字段:id */
|
||||
private Long id;
|
||||
|
||||
/** serviceId, 数据库字段:service_id */
|
||||
private String serviceId;
|
||||
|
||||
/** instanceId, 数据库字段:instance_id */
|
||||
private String instanceId;
|
||||
|
||||
|
Reference in New Issue
Block a user