t.monitorId, t.temperature, t.collectTime, t.recodeTime, COALESCE(ebmi.monitor_name, t.monitorId) AS monitorName INNER JOIN ems_base_monitor_info ebmi ON t.monitorId = ebmi.monitor_code AND ebmi.monitor_type IN (5, 6) AND t.temperature IS NOT NULL AND t.collectTime >= #{startTime} AND t.collectTime < #{endTime}