if (is_numeric($column[1]) && !is_int($column[1])) {
$value = (float) $column[1];
}
慕勒3428872
浏览 108回答 3
3回答
守候你守候我
根据您的评论,我认为您需要一个分组查询。$userBikes = array('862549040389788','12345');$data = DB::table('geolocation')->whereIn('Imei', $userBikes)->groupBy('Imei')->selectRaw('any_value(id) as id, any_value(Lat) as Lat, any_value(Lng) as Lng, any_value(created_at) as created_at, Imei')->get();