ezeke 发表于 2016-11-27 12:31:58

mybatis中使用IN函数

//listproductSn 是一个list,其存储函数IN所需的条件
select* from A where 1=1 AND product_sprotType IN
<foreach collection="listproductSn" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
页: [1]
查看完整版本: mybatis中使用IN函数