// GetServiceGroupById get service groups by id
GetServiceGroupById get service groups by id
// GetServiceGroupById get service groups by id
func (sgor *ServiceGroupOracleRepository) GetServiceGroupById(serviceGroup string) (ServiceGroup, error) {
	rows, err := sgor.Tx.Query(GET_SERVICE_GROUP_BY_ID_OR_NAME, serviceGroup, serviceGroup)
	if err != nil {
		return ServiceGroup{}, err
	}
	groups := RowsToServiceGroup(rows, false)
	if len(groups) == 0 {
		return ServiceGroup{}, errors.New("Service group not found")
	}
	return groups[0], nil
}
func ( sgor * ServiceGroupOracleRepository ) GetServiceGroupById ( serviceGroup string ) ( ServiceGroup , error ) { rows , err := sgor . Tx . Query ( GET_SERVICE_GROUP_BY_ID_OR_NAME , serviceGroup , serviceGroup ) if err != nil { return ServiceGroup { } , err } groups := RowsToServiceGroup ( rows , false ) if len ( groups ) == 0 { return ServiceGroup { } , errors . New ( " " ) } return groups [ 0 ] , nil }
GetServiceGroupById get service groups by id
GetServiceGroupById get service groups by id