From 77f67b84ae5a418514ec1210aa2041924ea9b1d8 Mon Sep 17 00:00:00 2001 From: swcho Date: Tue, 21 Oct 2025 18:08:46 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=8F=84=EC=8B=9C=EC=B9=A8=EC=88=98?= =?UTF-8?q?=EC=98=88=EB=B0=A9=EC=82=AC=EC=97=85,=20=EB=85=B8=ED=9B=84?= =?UTF-8?q?=ED=95=98=EC=88=98=EA=B4=80=EB=A1=9C=20=EC=A0=95=EB=B9=84?= =?UTF-8?q?=EC=82=AC=EC=97=85=20=EC=97=90=EB=9F=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/sn/app/(with-base-layout)/oper/floodPre/page.tsx | 9 +++------ apps/sn/app/(with-base-layout)/oper/oldPp/page.tsx | 9 ++++----- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/apps/sn/app/(with-base-layout)/oper/floodPre/page.tsx b/apps/sn/app/(with-base-layout)/oper/floodPre/page.tsx index af62b397f..1a5999db6 100644 --- a/apps/sn/app/(with-base-layout)/oper/floodPre/page.tsx +++ b/apps/sn/app/(with-base-layout)/oper/floodPre/page.tsx @@ -143,17 +143,14 @@ const Page = () => { // 현황 등록 const registFile = async (fileName: string, year: string, quater: string, cd: string, id: string) => { const json = { - atflNm: fileName, mngYr: year, mngQu: quater, - atflCd: cd, atflId: id, - sbmrgPrevntBizNm: fileName, - rgtr: tokenManager.getToken(AUTH_USER_ID) || null + atflCd: cd, + rgtr: tokenManager.getToken(AUTH_USER_ID) || null, + sbmrgPrevntBizNm: fileName } - console.log('registFile json =>', json); const data = await postData('v1/sbmrgPrevnt', json) - console.log('registFile data =>', data); if (data) { alert('파일이 등록되었습니다.'); setIsUploadModalOpen(false); diff --git a/apps/sn/app/(with-base-layout)/oper/oldPp/page.tsx b/apps/sn/app/(with-base-layout)/oper/oldPp/page.tsx index 93151a938..eee336a3b 100644 --- a/apps/sn/app/(with-base-layout)/oper/oldPp/page.tsx +++ b/apps/sn/app/(with-base-layout)/oper/oldPp/page.tsx @@ -139,16 +139,15 @@ const Page = () => { // 파일 등록 const registFile = async (fileNm: string, year: string, quater: string, cd: string, id: string) => { - const data = await postData('v1/dcrpPpl', { - atflNm: fileNm, + const json = { mngYr: year, mngQu: quater, atflCd: cd, atflId: id, - dcrpPplMtncBizNm: fileNm, rgtr: tokenManager.getToken(AUTH_USER_ID) || null, - rgtrNm: userInfo?.userName, - }) + dcrpPplMtncBizNm: fileNm + } + const data = await postData('v1/dcrpPpl', json); if (data) { alert('파일이 등록되었습니다.'); setIsModalOpen(false);