diff --git a/dbm-services/mysql/db-simulation/model/tb_mysql_pod_start_cfg.go b/dbm-services/mysql/db-simulation/model/tb_mysql_pod_start_cfg.go index 341afda825..710a27e48f 100644 --- a/dbm-services/mysql/db-simulation/model/tb_mysql_pod_start_cfg.go +++ b/dbm-services/mysql/db-simulation/model/tb_mysql_pod_start_cfg.go @@ -12,8 +12,8 @@ package model import "time" -// TbMySQLPodStartCfg 模拟执行 pod 启动参数 -type TbMySQLPodStartCfg struct { +// TbMysqlPodStartCfg 模拟执行 pod 启动参数 +type TbMysqlPodStartCfg struct { ID int `gorm:"primaryKey;column:id;type:int(11);not null" json:"-"` ComponentType string `gorm:"unique;column:uk_cv;type:varchar(64);not null" json:"component_type"` Version string `gorm:"unique;column:uk_cv;type:varchar(64);not null" json:"version"` @@ -24,7 +24,7 @@ type TbMySQLPodStartCfg struct { // GetStartArsg pod 启动参数 func GetStartArsg(componentType, version string) (start_args string, err error) { - err = DB.Model(&TbMySQLPodStartCfg{}).Select("start_args").Where("component_type = ? AND version = ?", componentType, + err = DB.Model(&TbMysqlPodStartCfg{}).Select("start_args").Where("component_type = ? AND version = ?", componentType, version). First(&start_args).Error return