삭제한 공통코드는 제외
This commit is contained in:
parent
07968d21fa
commit
baf6052a04
@ -26,6 +26,10 @@ async function getCommCode(request: NextRequest): Promise<NextResponse> {
|
||||
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<NextResponse> {
|
||||
REF_CHR1: true,
|
||||
REF_NUM1: true,
|
||||
},
|
||||
|
||||
orderBy: {
|
||||
CODE: 'asc',
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user