diff --git a/models/pallidsturgeon.go b/models/pallidsturgeon.go index 7fbb0df..5560604 100644 --- a/models/pallidsturgeon.go +++ b/models/pallidsturgeon.go @@ -299,6 +299,7 @@ type TelemetrySummary struct { Segment *int `db:"segment_code" json:"segment"` Season *string `db:"season_code" json:"season"` Bend *float64 `db:"bend_number" json:"bend"` + TBend *int `db:"t_bend" json:"t_bend"` RadioTagNum int `db:"radio_tag_num" json:"radioTagNum"` FrequencyIdCode int `db:"frequency_id" json:"frequencyIdCode"` CaptureTime string `db:"capture_time" json:"captureTime"` diff --git a/stores/pallidsturgeonstore.go b/stores/pallidsturgeonstore.go index 231d338..c0db01a 100644 --- a/stores/pallidsturgeonstore.go +++ b/stores/pallidsturgeonstore.go @@ -2791,7 +2791,7 @@ func (s *PallidSturgeonStore) GetFullTelemetryDataSummary(year string, officeCod return file.Name(), err } -var telemetryDataSummarySql = `select t_id, year,field_office_code,project_code,segment_code,season_code,bend_number,radio_tag_num,frequency_id,capture_time, capture_latitude, capture_longitude, position_confidence, macro_code, meso_code, depth, conductivity, turbidity, se_id, site_id, se.search_date, se.search_day, temp, silt, sand, gravel, comments +var telemetryDataSummarySql = `select t_id, year,field_office_code,project_code,segment_code,season_code,bend_number, t_bend, radio_tag_num,frequency_id,capture_time, capture_latitude, capture_longitude, position_confidence, macro_code, meso_code, depth, conductivity, turbidity, se_id, site_id, se.search_date, se.search_day, temp, silt, sand, gravel, comments FROM table (pallid_data_api.telemetry_datasummary_fnc(:1, :2, :3, :4, :5, :6, :7, to_date(:8,'MM/DD/YYYY'), to_date(:9,'MM/DD/YYYY'))) func inner join ds_search se on se.se_id = func.se_id` @@ -2862,6 +2862,7 @@ func (s *PallidSturgeonStore) GetTelemetryDataSummary(year string, officeCode st &summary.Segment, &summary.Season, &summary.Bend, + &summary.TBend, &summary.RadioTagNum, &summary.FrequencyIdCode, &summary.CaptureTime,