Добавлен вывод отчетов от системы

This commit is contained in:
brusnitsyn
2026-06-03 11:03:12 +09:00
parent f2cb6373ce
commit c857bd9f72
3 changed files with 16 additions and 5 deletions

View File

@@ -178,7 +178,7 @@ class GenerateDutyReport extends Command
// Формируем DateRange через ваш сервис (учёт смен, часовых поясов)
$user = User::find($userId);
$lpuDoctorId = $user->rf_lpudoctor_id ?? 1;
$lpuDoctorId = 0;
$dateRange = $dateRangeService->createDateRangeForDate($shiftEnd, $user);
// Цепочка из вашего контроллера

View File

@@ -49,7 +49,7 @@ class DutyReportService
$departmentId = $departmentId ?? $user->rf_department_id;
$data = [
'report_date' => Carbon::now()->format('Y-m-d'),
'report_date' => $dateRange->endSql(),
'sent_at' => Carbon::now()->format('Y-m-d H:i:s'),
'period_type' => 'day',
'period_start' => $dateRange->startSql(),