40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
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;
|
|
} |