From baf6052a045df4b9b4f0f7a9c41c3a53b3ddebdb Mon Sep 17 00:00:00 2001 From: yscha Date: Wed, 1 Oct 2025 18:16:23 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AD=EC=A0=9C=ED=95=9C=20=EA=B3=B5?= =?UTF-8?q?=ED=86=B5=EC=BD=94=EB=93=9C=EB=8A=94=20=EC=A0=9C=EC=99=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/api/comm-code/route.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/api/comm-code/route.ts b/src/app/api/comm-code/route.ts index d91adf6..0a99b9c 100644 --- a/src/app/api/comm-code/route.ts +++ b/src/app/api/comm-code/route.ts @@ -26,6 +26,10 @@ async function getCommCode(request: NextRequest): Promise { const results: CommCode[] = await prisma.BC_COMM_L.findMany({ where: { HEAD_CD: commHeadData.HEAD_CD, + // 'Y'가 아닌 모든 값 포함 (삭제 표시가 없는 모든 경우) + DEL_YN: { + notIn: ['Y'] + }, }, select: { HEAD_CD: true, @@ -34,6 +38,7 @@ async function getCommCode(request: NextRequest): Promise { REF_CHR1: true, REF_NUM1: true, }, + orderBy: { CODE: 'asc', },