From 77ce7ed4065ceb99eed5837698567f2bd528bf17 Mon Sep 17 00:00:00 2001 From: YangJinSoo94 Date: Wed, 18 Jun 2025 16:14:43 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=91=EC=85=80=20=EB=A7=8C=EB=93=9C?= =?UTF-8?q?=EB=8A=94=20=EC=86=8C=EC=8A=A4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wr/app/store/stats/rainStat/excel.tsx | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 apps/wr/app/store/stats/rainStat/excel.tsx diff --git a/apps/wr/app/store/stats/rainStat/excel.tsx b/apps/wr/app/store/stats/rainStat/excel.tsx new file mode 100644 index 000000000..f79de9abd --- /dev/null +++ b/apps/wr/app/store/stats/rainStat/excel.tsx @@ -0,0 +1,29 @@ +import type { RainStatProps } from "."; + +export const excelRainStat = (excelList:RainStatProps[]) => { + const excelData: string[][] = []; + excelList.forEach((item) => { + excelData.push([ + String(item.ctpvCd) ?? "", + String(item.sggCd) ?? "", + String(item.areaNm) ?? "", + String(item.bdstNm) ?? "", + String(item.instlCst) ?? "", + String(item.archArea) ?? "", + String(item.dtfcltCpct) ?? "", + String(item.wtrUsqty) ?? "", + String(item.anlOperCst) ?? "", + String(item.annRnwtQty) ?? "", + String(item.jungsudo) ?? "", + String(item.dachae) ?? "", + String(item.way1) ?? "", + String(item.way2) ?? "", + String(item.way3) ?? "", + String(item.way4) ?? "", + String(item.way5) ?? "", + String(item.way6) ?? "", + String(item.way7) ?? "", + ]); + }); + return excelData; +} \ No newline at end of file