Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- hadoop
- NPM
- Android
- SPC
- 공정능력
- SSL
- tomcat
- mapreduce
- Sqoop
- Spring
- plugin
- SQL
- R
- Python
- JavaScript
- IntelliJ
- table
- Express
- window
- xPlatform
- GIT
- Eclipse
- es6
- vaadin
- Java
- Kotlin
- MSSQL
- 보조정렬
- mybatis
- react
Archives
- Today
- Total
DBILITY
mybatis 조건문에서 java static method 사용 예시 본문
반응형
사용은 안하지만 기록은 해두자.
나는 그냥 아래처럼 사용을 한다.
<if test='departCode != null and departCode !="" '>
AND DEPART_CODE = #{departCode}
</if>
하지만 commlang의 StringUtils를 쓰면 다음과 같다.
<if test='@org.apache.commons.lang3.StringUtils@isNotEmpty(departCode)'>
AND DEPART_CODE = #{departCode}
</if>
그냥 그렇다.
반응형
'java > mybatis' 카테고리의 다른 글
| mybatis foreach multiple like (0) | 2023.11.30 |
|---|---|
| mybatis result net.sourceforge.jtds.jdbc.ClobImpl@object 일 경우 (0) | 2023.01.09 |
| mybatis comparision usage in condition expression ( 부등호 조건 등 ) (0) | 2022.10.04 |
| mybatis typehandler를 이용한 oracle procedure에 list<map> parameter 넘기기 (0) | 2017.07.15 |
| mybatis insert into table select시 ora-00933 (0) | 2017.07.01 |
Comments