fo: undefined형 처리

This commit is contained in:
ljpark
2025-11-24 10:14:18 +09:00
parent 43af6e5259
commit 9a78706abe
+1 -1
View File
@@ -334,7 +334,7 @@ export const sewageOccurReducer:(set:any)=>SewageOccurActions=(set: any) => {
const count = detailList ? detailList.length : 0;
const avg = count == 0 ? 0 : totWaterUsage / count; // 일평균 유입량
if(wtrUsgMap && wtrUsgMap[item.bscFctCd]) {
item.waterUsage = wtrUsgMap[item.bscFctCd];
item.waterUsage = wtrUsgMap[item.bscFctCd] ?? 0;
} else {item.waterUsage = parseFloat((avg * 0.65).toFixed(2));} // 물사용량 = 일평균 유입량 * 65%
item.sewageInputYear = parseFloat(avg.toFixed(2)); // 연간 하수유입량(m³/일)
item.sewageInputChungchun = parseFloat((chungcunSumFlow===0?0:(chungcunSumFlow / sumChungcunDay)).toFixed(2)); // 청천시 하수유입량