2026-06-28 PinPoint 작업일지입니다. 오늘은 1건의 작업을 진행했습니다.
`consultation-management`
현상/기능
- 우측 상세정보에서 현장소장 배정 후 이름이 보이지 않음
작업
- 파일
- 원인: DB `CONCAT(m.name, ' (', sm.company_name, ')')`가 `company_name` NULL 시 전체 NULL 반환, 저장·재조회 후 상세 폼이 빈 값으로 덮임. 배정 직후 동일 행 재클릭 시 목록 state 미반영
- `prisma/procedures/customer_receptions.sql` — `IFNULL` 적용 CONCAT (4곳)
- `prisma/migrations/20260628120000_fix_site_manager_name_concat_null.sql`
- `src/lib/` — 표시명 정규화 유틸 (신규)
- `src/app/api/customer-receptions/`, `src/app/api/customers/[id]/receptions/`
- `src/app/consultation-management/components/` — `handleRowClick` fallback, 배정 시 목록 state 동기화
- DB: `customer_receptions.sql` 프로시저 재적용 필요 (`get_customer_receptions` 등)