삭제한 공통코드는 제외
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({
|
const results: CommCode[] = await prisma.BC_COMM_L.findMany({
|
||||||
where: {
|
where: {
|
||||||
HEAD_CD: commHeadData.HEAD_CD,
|
HEAD_CD: commHeadData.HEAD_CD,
|
||||||
|
// 'Y'가 아닌 모든 값 포함 (삭제 표시가 없는 모든 경우)
|
||||||
|
DEL_YN: {
|
||||||
|
notIn: ['Y']
|
||||||
|
},
|
||||||
},
|
},
|
||||||
select: {
|
select: {
|
||||||
HEAD_CD: true,
|
HEAD_CD: true,
|
||||||
@ -34,6 +38,7 @@ async function getCommCode(request: NextRequest): Promise<NextResponse> {
|
|||||||
REF_CHR1: true,
|
REF_CHR1: true,
|
||||||
REF_NUM1: true,
|
REF_NUM1: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
orderBy: {
|
orderBy: {
|
||||||
CODE: 'asc',
|
CODE: 'asc',
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user