From 5505791b6e3ef04480731b123512e90e9e035c43 Mon Sep 17 00:00:00 2001 From: ljpark Date: Mon, 29 Jun 2026 11:48:37 +0900 Subject: [PATCH] =?UTF-8?q?wr:=20=ED=95=98=EC=88=98=EC=9E=AC=EC=9D=B4?= =?UTF-8?q?=EC=9A=A9=EB=93=B1=EB=A1=9D=20=ED=99=94=EB=A9=B4=20=EC=86=8D?= =?UTF-8?q?=EB=8F=84=EA=B0=9C=EC=84=A0-=EC=98=A4=EB=A5=98=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wr/app/store/map/splyPop/index.tsx | 3 +++ .../ruseFcltMng/fcltReg/pbnstReg/index.tsx | 22 +++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/apps/wr/app/store/map/splyPop/index.tsx b/apps/wr/app/store/map/splyPop/index.tsx index 7ea586e63..b92df81df 100644 --- a/apps/wr/app/store/map/splyPop/index.tsx +++ b/apps/wr/app/store/map/splyPop/index.tsx @@ -1,3 +1,6 @@ +/** + * 표준공사비 산정 섹션에서 후보지 조회 + */ import { getFetch } from "@/components/lib/api"; import type { FacilityInfo, SubsInfo } from "./type"; import { DEV_URL_FO } from "@/components/lib/config"; diff --git a/apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/index.tsx b/apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/index.tsx index 5660adbff..fe6b606f6 100644 --- a/apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/index.tsx +++ b/apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/index.tsx @@ -103,6 +103,28 @@ export const pubFacStateExport: pubFacState = { fclts: null, }, }; + +// 재사용시설에 대한 정보 조회 +export const checkWrRegList = async (get: any, set: any) => { + const { pbnst } = get(); + + if (Array.isArray(pbnst.fclts)) { + return pbnst.fclts; + } + + const wrRegList = await getFetch("wr", `/reuseFc/pubFc`); + const fclts = Array.isArray(wrRegList) ? wrRegList : []; + + set((state: pubFacState) => ({ + ...state, + pbnst: { + ...state.pbnst, + fclts, + }, + })); + + return fclts; +}; // 하수처리시설 정보 조회 const hasuListFetch = async ( _get: any,