feat: 切换 schema dump 基线并增强返点结算与管理校验
This commit is contained in:
@@ -14,10 +14,16 @@ final class ReportJobIndexController extends Controller
|
||||
public function __invoke(Request $request): JsonResponse
|
||||
{
|
||||
$p = AdminApiList::readPaging($request);
|
||||
$reportType = trim((string) $request->query('report_type', ''));
|
||||
|
||||
$paginator = ReportJob::query()
|
||||
->orderByDesc('id')
|
||||
->paginate($p['perPage'], ['*'], 'page', $p['page']);
|
||||
$query = ReportJob::query()
|
||||
->orderByDesc('id');
|
||||
|
||||
if ($reportType !== '') {
|
||||
$query->where('report_type', $reportType);
|
||||
}
|
||||
|
||||
$paginator = $query->paginate($p['perPage'], ['*'], 'page', $p['page']);
|
||||
|
||||
return AdminApiList::json($paginator, fn (ReportJob $j) => $this->row($j));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user