fix: 修正融合出现的问题
This commit is contained in:
parent
0b5b26d5b0
commit
5b7ec80473
@ -509,15 +509,15 @@ func resolveIssuedAtInBucket(db *sql.DB, stationID, provider string, bucketHour
|
|||||||
func loadForecastSamples(db *sql.DB, stationID, provider string, issued time.Time) ([]forecastSample, error) {
|
func loadForecastSamples(db *sql.DB, stationID, provider string, issued time.Time) ([]forecastSample, error) {
|
||||||
const q = `
|
const q = `
|
||||||
SELECT forecast_time,
|
SELECT forecast_time,
|
||||||
rain_mm_x1000,
|
COALESCE(rain_mm_x1000, 0),
|
||||||
temp_c_x100,
|
COALESCE(temp_c_x100, 0),
|
||||||
humidity_pct,
|
COALESCE(humidity_pct, 0),
|
||||||
wind_speed_ms_x1000,
|
COALESCE(wind_speed_ms_x1000, 0),
|
||||||
wind_gust_ms_x1000,
|
COALESCE(wind_gust_ms_x1000, 0),
|
||||||
wind_dir_deg,
|
COALESCE(wind_dir_deg, 0),
|
||||||
precip_prob_pct,
|
COALESCE(precip_prob_pct, 0),
|
||||||
pressure_hpa_x100,
|
COALESCE(pressure_hpa_x100, 0),
|
||||||
uv_index
|
COALESCE(uv_index, 0)
|
||||||
FROM forecast_hourly
|
FROM forecast_hourly
|
||||||
WHERE station_id=$1 AND provider=$2 AND issued_at=$3
|
WHERE station_id=$1 AND provider=$2 AND issued_at=$3
|
||||||
ORDER BY forecast_time ASC`
|
ORDER BY forecast_time ASC`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user