feat: [entertainment] 접대비 상세 조회 날짜 필터 파라미터 추가

- EntertainmentController: detail에 start_date/end_date 파라미터 전달
- EntertainmentService: getDetail 리스크/사용자분포/거래내역에 날짜 필터 적용

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
유병철
2026-03-04 15:32:16 +09:00
parent a173a5a4fc
commit 94b96e22f6
2 changed files with 25 additions and 16 deletions

View File

@@ -42,9 +42,11 @@ public function detail(Request $request): JsonResponse
$companyType = $request->query('company_type', 'medium');
$year = $request->query('year') ? (int) $request->query('year') : null;
$quarter = $request->query('quarter') ? (int) $request->query('quarter') : null;
$startDate = $request->query('start_date');
$endDate = $request->query('end_date');
return ApiResponse::handle(function () use ($companyType, $year, $quarter) {
return $this->entertainmentService->getDetail($companyType, $year, $quarter);
return ApiResponse::handle(function () use ($companyType, $year, $quarter, $startDate, $endDate) {
return $this->entertainmentService->getDetail($companyType, $year, $quarter, $startDate, $endDate);
}, __('message.fetched'));
}
}