Laravel 数据库操作 whereBetween orderBy 对同一个字段操作两次第二次被忽略?
$all_info[$i] = DB::table('orderinfo')
->where('UserId', $next_code[$i]->UserId)
->whereBetween('CreateTime', array($all_data['begin_time'], $all_data['end_time']))
->orderBy('CreateTime','DESC')
->get(['Money', 'UserId', 'CreateTime']);
这段代码orderby不起作用?
推荐文章: