首页 > 代码库 > iBatis in或not in 查询

iBatis in或not in 查询

iBatis in或not in 查询


open:内容开头
close:内容结尾
conjunction:分隔符
 
<isNotNull prepend="and" property="uidList">
     weibouid [in | not in]
     <iterate property="uidList" open="(" close=")" conjunction=",">
          #uidList[]#
     </iterate>
</isNotNull>
 
 
使用in将not in去掉,not in反之

iBatis in或not in 查询