feat: [quality] 실적신고 확정건 엑셀 다운로드 API 구현
- PhpSpreadsheet 기반 PerformanceReportExcelService 신규 생성 - 건기원 양식(품질인정자재등의 판매실적 대장) 엑셀 생성 - 카테고리별 배경색, 셀 병합, 회사정보 섹션 포함 - GET /api/v1/quality/performance-reports/export-excel 엔드포인트 추가 - 미확정 4개 필드(인정품목/내화성능시간/사용부위/로트번호) 빈값 처리
This commit is contained in:
@@ -13,9 +13,18 @@ class PerformanceReportService extends Service
|
||||
|
||||
public function __construct(
|
||||
private readonly AuditLogger $auditLogger,
|
||||
private readonly QualityDocumentService $qualityDocumentService
|
||||
private readonly QualityDocumentService $qualityDocumentService,
|
||||
private readonly PerformanceReportExcelService $excelService
|
||||
) {}
|
||||
|
||||
/**
|
||||
* 확정건 엑셀 다운로드
|
||||
*/
|
||||
public function exportConfirmed(int $year, int $quarter)
|
||||
{
|
||||
return $this->excelService->generate($year, $quarter);
|
||||
}
|
||||
|
||||
/**
|
||||
* 목록 조회
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user