From 4c7ff53d78e6bc3ec5268b6e0ace6a1a9bb424bf Mon Sep 17 00:00:00 2001 From: yangsein Date: Mon, 15 Jun 2026 00:43:03 +0900 Subject: [PATCH] =?UTF-8?q?feat:[=EC=A7=91=EA=B3=84=ED=91=9C]03.=ED=95=98?= =?UTF-8?q?=EC=88=98=EA=B4=80=EB=A1=9C=20=EC=9C=A0=EC=A7=80=EA=B4=80?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../statistics/total/SewagePipeMaintainTot.tsx | 9 +++++++-- .../statistics-sewage-pipe-maintain-total-interface.ts | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/st/src/components/statistics/total/SewagePipeMaintainTot.tsx b/apps/st/src/components/statistics/total/SewagePipeMaintainTot.tsx index a061146c5..b3dfe7a46 100644 --- a/apps/st/src/components/statistics/total/SewagePipeMaintainTot.tsx +++ b/apps/st/src/components/statistics/total/SewagePipeMaintainTot.tsx @@ -15,12 +15,17 @@ import type { SewagePipeMaintainTotalRequest } from "@/entities/statistics/model const firstTabKey = SewagePipeMaintainColumnListTot[0]?.tabKey ?? "ST00030001"; function buildSewagePipeMaintainTotSearchParam(values: SearchFormValues): SewagePipeMaintainTotalRequest { + const isSummaryEnabled = values.isSummary !== 'ALL'; + const summaryYearCnt = isSummaryEnabled ? Number(values.isSummary) : undefined; + return { ctpvNm: values.sido === "ALL" ? "" : values.sido, sggNm: values.gugun === "ALL" ? "" : values.gugun, sewerBzmnCd: values.bsnmCd, statsYr: values.year, - rowDataYn: values.isDetail, + rowDataYn: values.isDetail, + summaryYn: isSummaryEnabled, + ...(isSummaryEnabled ? { summaryYearCnt } : {}), }; } @@ -128,7 +133,7 @@ const SewagePipeMaintainTot = () => { return (
- + {isLoading && (
diff --git a/apps/st/src/entities/statistics/model/statistics-total/statistics-sewage-pipe-maintain-total-interface.ts b/apps/st/src/entities/statistics/model/statistics-total/statistics-sewage-pipe-maintain-total-interface.ts index 139320868..ca2c79b14 100644 --- a/apps/st/src/entities/statistics/model/statistics-total/statistics-sewage-pipe-maintain-total-interface.ts +++ b/apps/st/src/entities/statistics/model/statistics-total/statistics-sewage-pipe-maintain-total-interface.ts @@ -4,6 +4,8 @@ export interface SewagePipeMaintainTotalRequest { statsYr?: string; sewerBzmnCd?: string; rowDataYn?: boolean; + summaryYn?: boolean; + summaryYearCnt?: number; } export interface SewagePipeMaintainRepairTotalItem {