<if test="classPoint != null and classPoint != ''">
WHERE class.kids_class_cd = #{classPoint}
</if>
<if test="teacherPoint != null and teacherPoint != ''">
WHERE report.registrant = #{teacherPoint}
</if>
<if test="reportPoint != null and reportPoint != ''">
WHERE division.report_cd = #{reportPoint};
</if>
null을 넘겨주는것도 같은데 알고보니 and classPoint != '' 추가로 공백까지 잡아주니까 더 확실하게 처리가 됌
'Dev > Error List' 카테고리의 다른 글
[Spring Boot] CSS,JS 404 ERROR (3) | 2019.04.01 |
---|---|
[ Intelli J] JSP 파일에서 CSS 적용 및 변경이 안되는 경우 (0) | 2019.03.23 |
Spring Test RunWith,ContextConfiguration Error (0) | 2019.03.21 |
Tomcat 실행 오류 (Eclipse, STS) (0) | 2019.03.18 |
Value '0000-00-00' can not be represented as java.sql.Date 에러(Error) (0) | 2018.03.19 |