首页 > 其他 > 详细

mybatis判断集合为空或者元素个数为零

时间:2015-11-06 09:32:27      阅读:290      评论:0      收藏:0      [点我收藏+]

mybatis判断集合为空或者元素个数为零:

        <if test="mlhs != null and mlhs.size() != 0">
            and t.mlh_name not in  
            <foreach collection="mlhs" item="item1" open="(" close=")" index="i" separator=","> #{item1,jdbcType=VARCHAR}
            </foreach>
        </if>

 

mybatis判断集合为空或者元素个数为零

原文:http://www.cnblogs.com/stono/p/4941585.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!