feat: 切换 schema dump 基线并增强返点结算与管理校验

This commit is contained in:
2026-06-08 17:41:41 +08:00
parent 2d32f006c5
commit 8d5d7f5b17
130 changed files with 5746 additions and 6723 deletions

View File

@@ -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));
}