fix: 침입수, RDII 분석결과 상수사용기간 시작 년도 당해 년도 1월부터로 수정

This commit is contained in:
swcho
2025-07-28 09:06:56 +09:00
parent f8c902a138
commit 81a3e6324e
3 changed files with 15 additions and 10 deletions
@@ -224,8 +224,9 @@ const BaseLayout = ({
value: aplcnYmFrom || (() => { // aplcnYm이 없으면 현재 연월을 기본값으로 설정 value: aplcnYmFrom || (() => { // aplcnYm이 없으면 현재 연월을 기본값으로 설정
const now = new Date(); const now = new Date();
const year = now.getFullYear(); const year = now.getFullYear();
const month = String(now.getMonth() + 1).padStart(2, '0'); // const month = String(now.getMonth() + 1).padStart(2, '0');
return `${year}${month}`; // return `${year}${month}`;
return `${year}01`;
})(), // yyyyMM 형식 })(), // yyyyMM 형식
onChange: (value: string) => { onChange: (value: string) => {
setAplcnYmFrom?.(value); // string 값을 직접 전달 setAplcnYmFrom?.(value); // string 값을 직접 전달
@@ -22,8 +22,9 @@ const formSchema = z.object({
aplcnYmFrom: z.string().default(() => { // Date에서 string(yyyyMM 형식)으로 변경 aplcnYmFrom: z.string().default(() => { // Date에서 string(yyyyMM 형식)으로 변경
const now = new Date(); const now = new Date();
const year = now.getFullYear(); const year = now.getFullYear();
const month = String(now.getMonth() + 1).padStart(2, '0'); // const month = String(now.getMonth() + 1).padStart(2, '0');
return `${year}${month}`; // return `${year}${month}`;
return `${year}01`; // 기본값을 1월로 설정
}), // 분석기간 시작연월 }), // 분석기간 시작연월
aplcnYmTo: z.string().default(() => { // Date에서 string(yyyyMM 형식)으로 변경 aplcnYmTo: z.string().default(() => { // Date에서 string(yyyyMM 형식)으로 변경
const now = new Date(); const now = new Date();
@@ -66,8 +67,9 @@ const Result = () => {
aplcnYmFrom: (() => { // 현재 연월을 yyyyMM 형식으로 설정 aplcnYmFrom: (() => { // 현재 연월을 yyyyMM 형식으로 설정
const now = new Date(); const now = new Date();
const year = now.getFullYear(); const year = now.getFullYear();
const month = String(now.getMonth() + 1).padStart(2, '0'); // const month = String(now.getMonth() + 1).padStart(2, '0');
return `${year}${month}`; // return `${year}${month}`;
return `${year}01`;
})(), })(),
aplcnYmTo: (() => { // 현재 연월을 yyyyMM 형식으로 설정 aplcnYmTo: (() => { // 현재 연월을 yyyyMM 형식으로 설정
const now = new Date(); const now = new Date();
@@ -22,8 +22,9 @@ const formSchema = z.object({
aplcnYmFrom: z.string().default(() => { // Date에서 string(yyyyMM 형식)으로 변경 aplcnYmFrom: z.string().default(() => { // Date에서 string(yyyyMM 형식)으로 변경
const now = new Date(); const now = new Date();
const year = now.getFullYear(); const year = now.getFullYear();
const month = String(now.getMonth() + 1).padStart(2, '0'); // const month = String(now.getMonth() + 1).padStart(2, '0');
return `${year}${month}`; // return `${year}${month}`;
return `${year}01`;
}), // 분석기간 시작연월 }), // 분석기간 시작연월
aplcnYmTo: z.string().default(() => { // Date에서 string(yyyyMM 형식)으로 변경 aplcnYmTo: z.string().default(() => { // Date에서 string(yyyyMM 형식)으로 변경
const now = new Date(); const now = new Date();
@@ -62,8 +63,9 @@ const Result = () => {
aplcnYmFrom: (() => { // 현재 연월을 yyyyMM 형식으로 설정 aplcnYmFrom: (() => { // 현재 연월을 yyyyMM 형식으로 설정
const now = new Date(); const now = new Date();
const year = now.getFullYear(); const year = now.getFullYear();
const month = String(now.getMonth() + 1).padStart(2, '0'); // const month = String(now.getMonth() + 1).padStart(2, '0');
return `${year}${month}`; // return `${year}${month}`;
return `${year}01`;
})(), })(),
aplcnYmTo: (() => { // 현재 연월을 yyyyMM 형식으로 설정 aplcnYmTo: (() => { // 현재 연월을 yyyyMM 형식으로 설정
const now = new Date(); const now = new Date();