where('qapp_account_id', $qappAccountId) ->where('status', 1) ->where('start_time', '<=', date('Y-m-d H:i:s')) ->where('end_time', '>=', date('Y-m-d H:i:s')) ->orderBy('priority', 'DESC') ->orderBy('end_time', 'ASC') ->get(); return $result ? $result->toArray() : []; } }