김루트
EVOLUTION COMPLETE!
김루트
전체 방문자
오늘
어제
  • 분류 전체보기 (45)
    • Dev (37)
      • Vue (5)
      • Python (0)
      • 알고리즘 (0)
      • javascript (5)
      • JAVA (11)
      • Mysql (6)
      • git (3)
      • Error List (6)
    • 인터넷정보 (0)
    • Utility (1)
    • 관련자료 (2)
    • 제품리뷰 (1)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

  • 글 작성시 키보드 입력이 늦어지는 현상

인기 글

태그

  • 김루트
  • 파이썬 파일쓰기
  • 파이썬 open
  • Vue
  • 파이썬 파일추가
  • router-view
  • Vue공부
  • 파이썬 파일다루기
  • router-link
  • 파이썬 with
  • 파이썬
  • 람다
  • 파이썬 파일읽기
  • 함수
  • Vue.js

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
김루트

EVOLUTION COMPLETE!

Dev/Error List

Mapper <if>사용 경험

2018. 3. 27. 15:21


<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
    'Dev/Error List' 카테고리의 다른 글
    • [ Intelli J] JSP 파일에서 CSS 적용 및 변경이 안되는 경우
    • Spring Test RunWith,ContextConfiguration Error
    • Tomcat 실행 오류 (Eclipse, STS)
    • Value '0000-00-00' can not be represented as java.sql.Date 에러(Error)
    김루트
    김루트
    방문해주셔서 감사합니다:)

    티스토리툴바