mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-04 04:38:04 +08:00
[REV] change update deploy version code
This commit is contained in:
parent
5439bd3b2b
commit
42c1cd24d4
@ -162,6 +162,7 @@ func (t *TenantServicesDaoImpl) GetAllServices() ([]*model.TenantServices, error
|
|||||||
return services, nil
|
return services, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//GetAllServicesID get all service sample info
|
||||||
func (t *TenantServicesDaoImpl) GetAllServicesID() ([]*model.TenantServices, error) {
|
func (t *TenantServicesDaoImpl) GetAllServicesID() ([]*model.TenantServices, error) {
|
||||||
var services []*model.TenantServices
|
var services []*model.TenantServices
|
||||||
if err := t.DB.Select("service_id,service_alias,tenant_id").Find(&services).Error; err != nil {
|
if err := t.DB.Select("service_id,service_alias,tenant_id").Find(&services).Error; err != nil {
|
||||||
@ -175,7 +176,7 @@ func (t *TenantServicesDaoImpl) GetAllServicesID() ([]*model.TenantServices, err
|
|||||||
|
|
||||||
//UpdateDeployVersion update service current deploy version
|
//UpdateDeployVersion update service current deploy version
|
||||||
func (t *TenantServicesDaoImpl) UpdateDeployVersion(serviceID, deployversion string) error {
|
func (t *TenantServicesDaoImpl) UpdateDeployVersion(serviceID, deployversion string) error {
|
||||||
if err := t.DB.Raw("update tenant_services set deploy_version=? where service_id=?", deployversion, serviceID).Error; err != nil {
|
if err := t.DB.Exec("update tenant_services set deploy_version=? where service_id=?", deployversion, serviceID).Error; err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user