[ST] - fix: instSeCd -> laeSeCd를 사용하도록 수정
This commit is contained in:
@@ -136,7 +136,7 @@ const SearchForm = (props: SearchFormProps = {}) => {
|
||||
const { setMessage: alert } = useAlertStore((state) => state);
|
||||
const userInfo = useUserStore((state) => state.userInfo);
|
||||
const mergedProps = { ...defaultSearchFormProps, ...props };
|
||||
const instSeCd = userInfo?.instSeCd ?? "";
|
||||
const instSeCd = userInfo?.laeSeCd ?? "";
|
||||
const sidoSelectText =
|
||||
props.sidoSelectText && props.sidoSelectText.trim() !== ""
|
||||
? props.sidoSelectText
|
||||
|
||||
@@ -97,7 +97,7 @@ const ExcretaTreatmentFacilityRvw = () => {
|
||||
return null;
|
||||
}
|
||||
|
||||
const instSeCd = userInfo?.instSeCd ?? "";
|
||||
const instSeCd = userInfo?.laeSeCd?? "";
|
||||
if (!instSeCd) {
|
||||
return null;
|
||||
}
|
||||
@@ -108,7 +108,7 @@ const ExcretaTreatmentFacilityRvw = () => {
|
||||
statsCd: reviewOpinionContext.statsCd,
|
||||
instSeCd,
|
||||
};
|
||||
}, [reviewOpinionContext, userInfo?.instSeCd]);
|
||||
}, [reviewOpinionContext, userInfo?.laeSeCd]);
|
||||
|
||||
const handleReset = () => {
|
||||
setRowData([]);
|
||||
|
||||
@@ -109,7 +109,7 @@ const PrivateSewageFacilityRvw = () => {
|
||||
const statsYr = lastSearchValues.year ?? "";
|
||||
const sewerBzmnCd = lastSearchValues.bsnmCd ?? "";
|
||||
const statsCd = activeStatsStatusInfo.statsCd ?? "";
|
||||
const instSeCd = userInfo?.instSeCd ?? "";
|
||||
const instSeCd = userInfo?.laeSeCd?? "";
|
||||
|
||||
if (!statsYr || !sewerBzmnCd || !statsCd || !instSeCd) {
|
||||
return null;
|
||||
@@ -121,7 +121,7 @@ const PrivateSewageFacilityRvw = () => {
|
||||
statsCd,
|
||||
instSeCd,
|
||||
};
|
||||
}, [activeStatsStatusInfo.statsCd, lastSearchValues, userInfo?.instSeCd]);
|
||||
}, [activeStatsStatusInfo.statsCd, lastSearchValues, userInfo?.laeSeCd]);
|
||||
|
||||
const { showReviewOpinionButton, showReturnButton, showSubmitButton } = useMemo(() => {
|
||||
const statsStatusInfo = activeStatsStatusInfo;
|
||||
|
||||
@@ -81,7 +81,7 @@ const PublicSewageFacilityRvw = () => {
|
||||
return null;
|
||||
}
|
||||
|
||||
const instSeCd = userInfo?.instSeCd ?? "";
|
||||
const instSeCd = userInfo?.laeSeCd?? "";
|
||||
if (!instSeCd) {
|
||||
return null;
|
||||
}
|
||||
@@ -92,7 +92,7 @@ const PublicSewageFacilityRvw = () => {
|
||||
statsCd: reviewOpinionContext.statsCd,
|
||||
instSeCd,
|
||||
};
|
||||
}, [reviewOpinionContext, userInfo?.instSeCd]);
|
||||
}, [reviewOpinionContext, userInfo?.laeSeCd]);
|
||||
|
||||
const handleReset = () => {
|
||||
setRowData([]);
|
||||
|
||||
@@ -92,7 +92,7 @@ const PumpingStationRvw = () => {
|
||||
return null;
|
||||
}
|
||||
|
||||
const instSeCd = userInfo?.instSeCd ?? "";
|
||||
const instSeCd = userInfo?.laeSeCd?? "";
|
||||
if (!instSeCd) {
|
||||
return null;
|
||||
}
|
||||
@@ -103,7 +103,7 @@ const PumpingStationRvw = () => {
|
||||
statsCd: reviewOpinionContext.statsCd,
|
||||
instSeCd,
|
||||
};
|
||||
}, [reviewOpinionContext, userInfo?.instSeCd]);
|
||||
}, [reviewOpinionContext, userInfo?.laeSeCd]);
|
||||
|
||||
const handleReset = () => {
|
||||
setRowData([]);
|
||||
|
||||
@@ -112,7 +112,7 @@ const SewageExcretaRelatedRvw = () => {
|
||||
const statsYr = lastSearchValues.year ?? "";
|
||||
const sewerBzmnCd = lastSearchValues.bsnmCd ?? "";
|
||||
const statsCd = activeStatsStatusInfo.statsCd ?? "";
|
||||
const instSeCd = userInfo?.instSeCd ?? "";
|
||||
const instSeCd = userInfo?.laeSeCd?? "";
|
||||
|
||||
if (!statsYr || !sewerBzmnCd || !statsCd || !instSeCd) {
|
||||
return null;
|
||||
@@ -124,7 +124,7 @@ const SewageExcretaRelatedRvw = () => {
|
||||
statsCd,
|
||||
instSeCd,
|
||||
};
|
||||
}, [activeStatsStatusInfo.statsCd, lastSearchValues, userInfo?.instSeCd]);
|
||||
}, [activeStatsStatusInfo.statsCd, lastSearchValues, userInfo?.laeSeCd]);
|
||||
|
||||
const { showReviewOpinionButton, showReturnButton, showSubmitButton } = useMemo(() => {
|
||||
const statsStatusInfo = activeStatsStatusInfo;
|
||||
|
||||
@@ -112,7 +112,7 @@ const SewageExcretaSlurgeRvw = () => {
|
||||
const statsYr = lastSearchValues.year ?? "";
|
||||
const sewerBzmnCd = lastSearchValues.bsnmCd ?? "";
|
||||
const statsCd = activeStatsStatusInfo.statsCd ?? "";
|
||||
const instSeCd = userInfo?.instSeCd ?? "";
|
||||
const instSeCd = userInfo?.laeSeCd?? "";
|
||||
|
||||
if (!statsYr || !sewerBzmnCd || !statsCd || !instSeCd) {
|
||||
return null;
|
||||
@@ -124,7 +124,7 @@ const SewageExcretaSlurgeRvw = () => {
|
||||
statsCd,
|
||||
instSeCd,
|
||||
};
|
||||
}, [activeStatsStatusInfo.statsCd, lastSearchValues, userInfo?.instSeCd]);
|
||||
}, [activeStatsStatusInfo.statsCd, lastSearchValues, userInfo?.laeSeCd]);
|
||||
|
||||
const { showReviewOpinionButton, showReturnButton, showSubmitButton } = useMemo(() => {
|
||||
const statsStatusInfo = activeStatsStatusInfo;
|
||||
|
||||
@@ -127,7 +127,7 @@ const SewagePipeMaintainRvw = () => {
|
||||
const statsYr = lastSearchValues.year ?? "";
|
||||
const sewerBzmnCd = lastSearchValues.bsnmCd ?? "";
|
||||
const statsCd = activeStatsStatusInfo.statsCd ?? "";
|
||||
const instSeCd = userInfo?.instSeCd ?? "";
|
||||
const instSeCd = userInfo?.laeSeCd?? "";
|
||||
|
||||
if (!statsYr || !sewerBzmnCd || !statsCd || !instSeCd) {
|
||||
return null;
|
||||
@@ -139,7 +139,7 @@ const SewagePipeMaintainRvw = () => {
|
||||
statsCd,
|
||||
instSeCd,
|
||||
};
|
||||
}, [activeStatsStatusInfo.statsCd, lastSearchValues, userInfo?.instSeCd]);
|
||||
}, [activeStatsStatusInfo.statsCd, lastSearchValues, userInfo?.laeSeCd]);
|
||||
|
||||
const { showReviewOpinionButton, showReturnButton, showSubmitButton } = useMemo(() => {
|
||||
const statsStatusInfo = activeStatsStatusInfo;
|
||||
|
||||
@@ -187,7 +187,7 @@ const SewagePipeRvw = () => {
|
||||
const statsYr = lastSearchValues.year ?? "";
|
||||
const sewerBzmnCd = lastSearchValues.bsnmCd ?? "";
|
||||
const statsCd = activeStatsStatusInfo.statsCd ?? "";
|
||||
const instSeCd = userInfo?.instSeCd ?? "";
|
||||
const instSeCd = userInfo?.laeSeCd?? "";
|
||||
|
||||
if (!statsYr || !sewerBzmnCd || !statsCd || !instSeCd) {
|
||||
return null;
|
||||
@@ -199,7 +199,7 @@ const SewagePipeRvw = () => {
|
||||
statsCd,
|
||||
instSeCd,
|
||||
};
|
||||
}, [activeStatsStatusInfo.statsCd, lastSearchValues, userInfo?.instSeCd]);
|
||||
}, [activeStatsStatusInfo.statsCd, lastSearchValues, userInfo?.laeSeCd]);
|
||||
|
||||
const { showReviewOpinionButton, showReturnButton, showSubmitButton } = useMemo(() => {
|
||||
const statsStatusInfo = activeStatsStatusInfo;
|
||||
|
||||
@@ -133,7 +133,7 @@ const SewageReservoirPumpRvw = () => {
|
||||
const statsYr = lastSearchValues.year ?? "";
|
||||
const sewerBzmnCd = lastSearchValues.bsnmCd ?? "";
|
||||
const statsCd = activeStatsCd;
|
||||
const instSeCd = userInfo?.instSeCd ?? "";
|
||||
const instSeCd = userInfo?.laeSeCd?? "";
|
||||
|
||||
if (!statsYr || !sewerBzmnCd || !statsCd || !instSeCd) {
|
||||
return null;
|
||||
@@ -145,7 +145,7 @@ const SewageReservoirPumpRvw = () => {
|
||||
statsCd,
|
||||
instSeCd,
|
||||
};
|
||||
}, [activeStatsCd, lastSearchValues, userInfo?.instSeCd]);
|
||||
}, [activeStatsCd, lastSearchValues, userInfo?.laeSeCd]);
|
||||
|
||||
const { showReviewOpinionButton, showReturnButton, showSubmitButton } = useMemo(() => {
|
||||
const statsStatusInfo = activeStatsStatusInfo;
|
||||
|
||||
@@ -112,7 +112,7 @@ const SewerageFinanceRvw = () => {
|
||||
const statsYr = lastSearchValues.year ?? "";
|
||||
const sewerBzmnCd = lastSearchValues.bsnmCd ?? "";
|
||||
const statsCd = activeStatsStatusInfo.statsCd ?? "";
|
||||
const instSeCd = userInfo?.instSeCd ?? "";
|
||||
const instSeCd = userInfo?.laeSeCd?? "";
|
||||
|
||||
if (!statsYr || !sewerBzmnCd || !statsCd || !instSeCd) {
|
||||
return null;
|
||||
@@ -124,7 +124,7 @@ const SewerageFinanceRvw = () => {
|
||||
statsCd,
|
||||
instSeCd,
|
||||
};
|
||||
}, [activeStatsStatusInfo.statsCd, lastSearchValues, userInfo?.instSeCd]);
|
||||
}, [activeStatsStatusInfo.statsCd, lastSearchValues, userInfo?.laeSeCd]);
|
||||
|
||||
const { showReviewOpinionButton, showReturnButton, showSubmitButton } = useMemo(() => {
|
||||
const statsStatusInfo = activeStatsStatusInfo;
|
||||
|
||||
@@ -81,7 +81,7 @@ const SeweragePenetrationRateRvw = () => {
|
||||
return null;
|
||||
}
|
||||
|
||||
const instSeCd = userInfo?.instSeCd ?? "";
|
||||
const instSeCd = userInfo?.laeSeCd?? "";
|
||||
if (!instSeCd) {
|
||||
return null;
|
||||
}
|
||||
@@ -92,7 +92,7 @@ const SeweragePenetrationRateRvw = () => {
|
||||
statsCd: reviewOpinionContext.statsCd,
|
||||
instSeCd,
|
||||
};
|
||||
}, [reviewOpinionContext, userInfo?.instSeCd]);
|
||||
}, [reviewOpinionContext, userInfo?.laeSeCd]);
|
||||
|
||||
const handleReset = () => {
|
||||
setRowData([]);
|
||||
|
||||
@@ -110,7 +110,7 @@ const SewerageServiceLevelRvw = () => {
|
||||
const statsYr = lastSearchValues.year ?? "";
|
||||
const sewerBzmnCd = lastSearchValues.bsnmCd ?? "";
|
||||
const statsCd = activeStatsStatusInfo.statsCd ?? "";
|
||||
const instSeCd = userInfo?.instSeCd ?? "";
|
||||
const instSeCd = userInfo?.laeSeCd?? "";
|
||||
|
||||
if (!statsYr || !sewerBzmnCd || !statsCd || !instSeCd) {
|
||||
return null;
|
||||
@@ -122,7 +122,7 @@ const SewerageServiceLevelRvw = () => {
|
||||
statsCd,
|
||||
instSeCd,
|
||||
};
|
||||
}, [activeStatsStatusInfo.statsCd, lastSearchValues, userInfo?.instSeCd]);
|
||||
}, [activeStatsStatusInfo.statsCd, lastSearchValues, userInfo?.laeSeCd]);
|
||||
|
||||
const { showReviewOpinionButton, showReturnButton, showSubmitButton } = useMemo(() => {
|
||||
const statsStatusInfo = activeStatsStatusInfo;
|
||||
|
||||
@@ -271,7 +271,7 @@ const StatsInputStatusRvw = () => {
|
||||
|
||||
const statsYr = lastSearchedValues.year ?? "";
|
||||
const sewerBzmnCd = lastSearchedValues.bsnmCd ?? "";
|
||||
const instSeCd = userInfo?.instSeCd ?? "";
|
||||
const instSeCd = userInfo?.laeSeCd?? "";
|
||||
|
||||
if (!statsYr || !sewerBzmnCd || !instSeCd) {
|
||||
return null;
|
||||
@@ -282,7 +282,7 @@ const StatsInputStatusRvw = () => {
|
||||
sewerBzmnCd,
|
||||
instSeCd,
|
||||
};
|
||||
}, [lastSearchedValues, userInfo?.instSeCd]);
|
||||
}, [lastSearchedValues, userInfo?.laeSeCd]);
|
||||
|
||||
const submitFunc = () => {
|
||||
if (submitDialogContext == null) {
|
||||
|
||||
@@ -115,7 +115,7 @@ const WaterReuseRvw = () => {
|
||||
const statsYr = lastSearchValues.year ?? "";
|
||||
const sewerBzmnCd = lastSearchValues.bsnmCd ?? "";
|
||||
const statsCd = activeStatsStatusInfo.statsCd ?? "";
|
||||
const instSeCd = userInfo?.instSeCd ?? "";
|
||||
const instSeCd = userInfo?.laeSeCd?? "";
|
||||
|
||||
if (!statsYr || !sewerBzmnCd || !statsCd || !instSeCd) {
|
||||
return null;
|
||||
@@ -127,7 +127,7 @@ const WaterReuseRvw = () => {
|
||||
statsCd,
|
||||
instSeCd,
|
||||
};
|
||||
}, [activeStatsStatusInfo.statsCd, lastSearchValues, userInfo?.instSeCd]);
|
||||
}, [activeStatsStatusInfo.statsCd, lastSearchValues, userInfo?.laeSeCd]);
|
||||
|
||||
const { showReviewOpinionButton, showReturnButton, showSubmitButton } = useMemo(() => {
|
||||
const statsStatusInfo = activeStatsStatusInfo;
|
||||
|
||||
@@ -158,7 +158,7 @@ const ImrVerificationHistory = () => {
|
||||
});
|
||||
|
||||
const userInfo = useUserStore((state) => state.userInfo);
|
||||
const userInstSeCd = userInfo?.instSeCd;
|
||||
const userInstSeCd = userInfo?.laeSeCd;
|
||||
const { data: sidoData } = useSidoList({ instSeCd: userInstSeCd });
|
||||
const sidoOptions = sidoData?.sidoList ?? [];
|
||||
const selectedSidoBsnmCd =
|
||||
|
||||
@@ -191,7 +191,7 @@ function StatisticsVerificationReport() {
|
||||
const prevLengthRef = useRef(0);
|
||||
const rejectedVrfcSnRef = useRef<Set<number>>(new Set());
|
||||
|
||||
const userInstSeCd = userInfo?.instSeCd;
|
||||
const userInstSeCd = userInfo?.laeSeCd;
|
||||
const { data: sidoData } = useSidoList({ instSeCd: userInstSeCd });
|
||||
const sidoList = sidoData?.sidoList ?? [];
|
||||
const selectedSidoBsnmCd = filters.ctpvSewerBzmnCd ?? "";
|
||||
|
||||
@@ -47,7 +47,7 @@ export function useSearchConditionSidoList(options?: { isInput?: boolean }): {
|
||||
sidoList: Sido[];
|
||||
isReady: boolean;
|
||||
} {
|
||||
const instSeCd = useUserStore((state) => state.userInfo?.instSeCd ?? "");
|
||||
const instSeCd = useUserStore((state) => state.userInfo?.laeSeCd ?? "");
|
||||
const kind: SearchConditionKind = options?.isInput ? "input" : "default";
|
||||
const { data } = useSWR(
|
||||
SEARCH_CONDITION_SWR_KEY(instSeCd, kind),
|
||||
|
||||
Reference in New Issue
Block a user