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