오류 소스
<if test="filterKey != null and filterKey != 'F'">
원인
'' 작은 따옴표 문제
- 작은 따옴표로 한 문자를 감싸면 숫자로 인식 ➡ 타입 에러 발생
- 문자열 비교 시 해당 문자열을 큰 따옴표로 감싸기
수정 소스
<if test='filterKey != null and filterKey != "F"'>
<if test="filterKey != null and filterKey != 'F'">
<if test='filterKey != null and filterKey != "F"'>
댓글