From 81a3e6324e2bd9c75c75f49dab42059109542228 Mon Sep 17 00:00:00 2001 From: swcho Date: Mon, 28 Jul 2025 09:06:56 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=B9=A8=EC=9E=85=EC=88=98,=20RDII=20?= =?UTF-8?q?=EB=B6=84=EC=84=9D=EA=B2=B0=EA=B3=BC=20=EC=83=81=EC=88=98?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=EA=B8=B0=EA=B0=84=20=EC=8B=9C=EC=9E=91=20?= =?UTF-8?q?=EB=85=84=EB=8F=84=20=EB=8B=B9=ED=95=B4=20=EB=85=84=EB=8F=84=20?= =?UTF-8?q?1=EC=9B=94=EB=B6=80=ED=84=B0=EB=A1=9C=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)/ii/BaseLayout.tsx | 5 +++-- apps/sn/app/(with-base-layout)/ii/rdiiResult/page.tsx | 10 ++++++---- apps/sn/app/(with-base-layout)/ii/result/page.tsx | 10 ++++++---- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/apps/sn/app/(with-base-layout)/ii/BaseLayout.tsx b/apps/sn/app/(with-base-layout)/ii/BaseLayout.tsx index 51ac4d291..f0a649ad4 100644 --- a/apps/sn/app/(with-base-layout)/ii/BaseLayout.tsx +++ b/apps/sn/app/(with-base-layout)/ii/BaseLayout.tsx @@ -224,8 +224,9 @@ const BaseLayout = ({ value: aplcnYmFrom || (() => { // aplcnYm이 없으면 현재 연월을 기본값으로 설정 const now = new Date(); const year = now.getFullYear(); - const month = String(now.getMonth() + 1).padStart(2, '0'); - return `${year}${month}`; + // const month = String(now.getMonth() + 1).padStart(2, '0'); + // return `${year}${month}`; + return `${year}01`; })(), // yyyyMM 형식 onChange: (value: string) => { setAplcnYmFrom?.(value); // string 값을 직접 전달 diff --git a/apps/sn/app/(with-base-layout)/ii/rdiiResult/page.tsx b/apps/sn/app/(with-base-layout)/ii/rdiiResult/page.tsx index a5ab55407..08c7a8146 100644 --- a/apps/sn/app/(with-base-layout)/ii/rdiiResult/page.tsx +++ b/apps/sn/app/(with-base-layout)/ii/rdiiResult/page.tsx @@ -22,8 +22,9 @@ const formSchema = z.object({ aplcnYmFrom: z.string().default(() => { // Date에서 string(yyyyMM 형식)으로 변경 const now = new Date(); const year = now.getFullYear(); - const month = String(now.getMonth() + 1).padStart(2, '0'); - return `${year}${month}`; + // const month = String(now.getMonth() + 1).padStart(2, '0'); + // return `${year}${month}`; + return `${year}01`; // 기본값을 1월로 설정 }), // 분석기간 시작연월 aplcnYmTo: z.string().default(() => { // Date에서 string(yyyyMM 형식)으로 변경 const now = new Date(); @@ -66,8 +67,9 @@ const Result = () => { aplcnYmFrom: (() => { // 현재 연월을 yyyyMM 형식으로 설정 const now = new Date(); const year = now.getFullYear(); - const month = String(now.getMonth() + 1).padStart(2, '0'); - return `${year}${month}`; + // const month = String(now.getMonth() + 1).padStart(2, '0'); + // return `${year}${month}`; + return `${year}01`; })(), aplcnYmTo: (() => { // 현재 연월을 yyyyMM 형식으로 설정 const now = new Date(); diff --git a/apps/sn/app/(with-base-layout)/ii/result/page.tsx b/apps/sn/app/(with-base-layout)/ii/result/page.tsx index 30d0ef07c..974f6fa5f 100644 --- a/apps/sn/app/(with-base-layout)/ii/result/page.tsx +++ b/apps/sn/app/(with-base-layout)/ii/result/page.tsx @@ -22,8 +22,9 @@ const formSchema = z.object({ aplcnYmFrom: z.string().default(() => { // Date에서 string(yyyyMM 형식)으로 변경 const now = new Date(); const year = now.getFullYear(); - const month = String(now.getMonth() + 1).padStart(2, '0'); - return `${year}${month}`; + // const month = String(now.getMonth() + 1).padStart(2, '0'); + // return `${year}${month}`; + return `${year}01`; }), // 분석기간 시작연월 aplcnYmTo: z.string().default(() => { // Date에서 string(yyyyMM 형식)으로 변경 const now = new Date(); @@ -62,8 +63,9 @@ const Result = () => { aplcnYmFrom: (() => { // 현재 연월을 yyyyMM 형식으로 설정 const now = new Date(); const year = now.getFullYear(); - const month = String(now.getMonth() + 1).padStart(2, '0'); - return `${year}${month}`; + // const month = String(now.getMonth() + 1).padStart(2, '0'); + // return `${year}${month}`; + return `${year}01`; })(), aplcnYmTo: (() => { // 현재 연월을 yyyyMM 형식으로 설정 const now = new Date();