feat: 하수맨홀 검색 구현

This commit is contained in:
swcho
2025-07-03 09:56:17 +09:00
parent 711412b82e
commit 0cbd48354c
+5 -5
View File
@@ -332,14 +332,14 @@ const SearchModal: React.FC<SearchModalProps> = ({
`${todayYear}${todayMonth}${todayDate}`,
);
cqlFilters.push(
`설치시작년도 >= '${startDate}' and 설치시작년도 <= '${endDate}'`,
`instl_ymd >= '${startDate}' and instl_ymd <= '${endDate}'`,
);
// if (변수1) cqlFilters.push(`경과년도='${변수1}'`);
if (변수2) cqlFilters.push(`용도코드='${변수2}'`);
if (변수2) cqlFilters.push(`usg_cd='${변수2}'`);
// 구경(mm) 범위
if (시작1 && 종료1) cqlFilters.push(`구경 BETWEEN ${시작1} AND ${종료1}`);
else if (시작1) cqlFilters.push(`구경 >= ${시작1}`);
else if (종료1) cqlFilters.push(`구경 <= ${종료1}`);
if (시작1 && 종료1) cqlFilters.push(`swage_mh_diam BETWEEN ${시작1} AND ${종료1}`);
else if (시작1) cqlFilters.push(`swage_mh_diam >= ${시작1}`);
else if (종료1) cqlFilters.push(`swage_mh_diam <= ${종료1}`);
return cqlFilters;
};