Commit Graph

2 Commits

Author SHA1 Message Date
kjs f2f0c33bad feat: webTypeStandardController & fileController Prisma 전환 완료
컨트롤러 레이어 전환:

webTypeStandardController.ts (11개):
-  getWebTypes: findMany → query (동적 WHERE, ILIKE)
-  getWebType: findUnique → queryOne
-  createWebType: findUnique + create → queryOne (중복 체크 + INSERT)
-  updateWebType: update → query (동적 UPDATE, 11개 필드)
-  deleteWebType: delete → query (RETURNING)
-  updateSortOrder: $transaction → transaction (batch update)
-  getCategories: groupBy → query (GROUP BY, COUNT)

fileController.ts (1개):
-  downloadFile: findUnique → queryOne

기술적 구현:
- 동적 WHERE 절: ILIKE를 사용한 검색
- 동적 UPDATE: 11개 필드 조건부 업데이트
- 트랜잭션: transaction 함수로 batch update
- GROUP BY: 카테고리별 집계

전체 진행률: 42/29 (145%) - 컨트롤러 완료
남은 작업: Routes(4), Service(4), Config(4)
2025-10-01 14:36:36 +09:00
kjs 7919079362 docs: Phase 4 남은 Prisma 호출 전환 계획서 작성
현재 상황 분석 및 문서화:

컨트롤러 레이어:
-  adminController.ts (28개) 완료
-  screenFileController.ts (2개) 완료
- 🔄 남은 파일 (12개 호출):
  * webTypeStandardController.ts (11개)
  * fileController.ts (1개)

Routes & Services:
- ddlRoutes.ts (2개)
- companyManagementRoutes.ts (2개)
- multiConnectionQueryService.ts (4개)

Config:
- database.ts (4개 - 제거 예정)

새로운 계획서:
- PHASE4_REMAINING_PRISMA_CALLS.md (상세 전환 계획)
- 파일별 Prisma 호출 상세 분석
- 전환 패턴 및 우선순위 정리

전체 진행률: 445/444 (100.2%)
남은 작업: 12개 (추가 조사 필요한 파일 제외)
2025-10-01 14:33:08 +09:00