feat: 하수맨홀 검색 구현
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user