From 14e6c790ed4d927b2c43e4bf89e9575b125dd901 Mon Sep 17 00:00:00 2001 From: brusnitsyn Date: Mon, 15 Jun 2026 17:10:19 +0900 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D0=BE=D0=B3?= =?UTF-8?q?=D1=80=D0=B0=D0=BD=D0=B8=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=BE=D0=BF=D0=B5=D1=80=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/DutyMedicalHistoryService.php | 2 +- app/Services/MedicalHistoryService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/DutyMedicalHistoryService.php b/app/Services/DutyMedicalHistoryService.php index 995f8cb..4f80f10 100644 --- a/app/Services/DutyMedicalHistoryService.php +++ b/app/Services/DutyMedicalHistoryService.php @@ -60,7 +60,7 @@ class DutyMedicalHistoryService 'observable', 'operations' => function ($q) use ($departmentId, $dateRange) { $q->where('department_id', $departmentId) - ->where('start_date', '>=', $dateRange->startSql()) + // ->where('start_date', '>=', $dateRange->startSql()) ->where('start_date', '<', $dateRange->endSql()) // Только операции пока пациент реально лежал в отделении ->whereExists(function ($sub) use ($departmentId) { diff --git a/app/Services/MedicalHistoryService.php b/app/Services/MedicalHistoryService.php index 936438a..d0ca194 100644 --- a/app/Services/MedicalHistoryService.php +++ b/app/Services/MedicalHistoryService.php @@ -53,7 +53,7 @@ class MedicalHistoryService 'observable', 'operations' => function ($q) use ($departmentId, $dateRange) { $q->where('department_id', $departmentId) - ->where('start_date', '>=', $dateRange->startSql()) + // ->where('start_date', '>=', $dateRange->startSql()) ->where('start_date', '<', $dateRange->endSql()) // Только операции пока пациент реально лежал в отделении ->whereExists(function ($sub) use ($departmentId) {