fo: undefined형 처리
This commit is contained in:
@@ -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)); // 청천시 하수유입량
|
||||
|
||||
Reference in New Issue
Block a user