From e83d0e90ffc5a26d500bceb85c5c47350b2d372b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9C=A0=EB=B3=91=EC=B2=A0?= Date: Tue, 17 Mar 2026 18:19:30 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20[equipment]=20=EC=84=A4=EB=B9=84?= =?UTF-8?q?=EC=A0=90=EA=B2=80=20=EC=A1=B0=ED=9A=8C=20=EC=9D=91=EB=8B=B5?= =?UTF-8?q?=EC=97=90=20=ED=9C=B4=EB=AC=B4=EC=9D=BC(non=5Fworking=5Fdays)?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - InspectionCycle::getHolidayDates()로 해당 주기/기간의 휴무일 조회 - 응답에 non_working_days 배열 포함하여 프론트 캘린더 표시 지원 Co-Authored-By: Claude Opus 4.6 (1M context) --- app/Services/Equipment/EquipmentInspectionService.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Services/Equipment/EquipmentInspectionService.php b/app/Services/Equipment/EquipmentInspectionService.php index e56133ef..15976e64 100644 --- a/app/Services/Equipment/EquipmentInspectionService.php +++ b/app/Services/Equipment/EquipmentInspectionService.php @@ -34,6 +34,9 @@ public function getInspections(string $cycle, string $period, ?string $productio $labels = InspectionCycle::columnLabels($cycle, $period); $userId = $this->apiUserId(); + $tenantId = $this->tenantId(); + $holidayDates = InspectionCycle::getHolidayDates($cycle, $period, $tenantId); + $result = []; foreach ($equipments as $equipment) { @@ -68,6 +71,7 @@ public function getInspections(string $cycle, string $period, ?string $productio 'details' => $details, 'labels' => $labels, 'can_inspect' => $equipment->canInspect($userId), + 'non_working_days' => array_keys($holidayDates), ]; }