25 lines
815 B
TypeScript
25 lines
815 B
TypeScript
import type { RainStatProps } from ".";
|
|
|
|
export const excelRainStat = (excelList:RainStatProps[]) : string[][] => {
|
|
const excelData: string[][] = [];
|
|
excelList.forEach((item) => {
|
|
excelData.push([
|
|
String(item.ctpvCd) ?? "",
|
|
String(item.sggCd) ?? "",
|
|
String(item.areaNm) ?? "",
|
|
String(item.bdstNm) ?? "",
|
|
String(item.bdstUsgCd) ?? "",
|
|
String(item.daddr) ?? "",
|
|
String(item.lawTrgtYn) ?? "",
|
|
String(item.instlCmptnDt) ?? "",
|
|
String(item.instlCst) ?? "",
|
|
String(item.pntfColKnd) ?? "",
|
|
String(item.filtrTrtmfctYn) ?? "",
|
|
String(item.dtfcltCpct) ?? "",
|
|
String(item.wtrUsqty) ?? "",
|
|
String(item.utztnUsgCd) ?? "",
|
|
String(item.anlOperCst) ?? "",
|
|
]);
|
|
});
|
|
return excelData;
|
|
} |