feat(admin): 补全报表中心汇总 API 并恢复 report-jobs 导出
新增每日盈亏、玩家输赢、玩法维度、佣金回水四类聚合查询与权限注册,恢复报表异步导出任务;审计日志支持按操作人与日期筛选。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -19,6 +19,9 @@ final class AuditLogIndexController extends Controller
|
||||
$module = trim((string) $request->query('module_code', ''));
|
||||
$action = trim((string) $request->query('action_code', ''));
|
||||
$operatorType = trim((string) $request->query('operator_type', ''));
|
||||
$operatorId = (int) $request->query('operator_id', 0);
|
||||
$startDate = trim((string) $request->query('start_date', ''));
|
||||
$endDate = trim((string) $request->query('end_date', ''));
|
||||
|
||||
$q = AuditLog::query()->orderByDesc('id');
|
||||
|
||||
@@ -31,6 +34,15 @@ final class AuditLogIndexController extends Controller
|
||||
if ($operatorType !== '') {
|
||||
$q->where('operator_type', $operatorType);
|
||||
}
|
||||
if ($operatorId > 0) {
|
||||
$q->where('operator_id', $operatorId);
|
||||
}
|
||||
if ($startDate !== '') {
|
||||
$q->whereDate('created_at', '>=', $startDate);
|
||||
}
|
||||
if ($endDate !== '') {
|
||||
$q->whereDate('created_at', '<=', $endDate);
|
||||
}
|
||||
|
||||
$paginator = $q->paginate($p['perPage'], ['*'], 'page', $p['page']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user