<span style="font-size:18px;"><select id="selectAll" resultMap="BaseResultMap" >
select
gc_name_1,gc_id_1,gc_id_2
from order_goods_product
<where>
gc_id_1 in
<foreach collection="list" item="item" index="index"
open="(" separator="," close=")">
#{item}
</foreach> and ishistory = 0
</where>
group by gc_id_1
</select></span>
其中collerction是指传入数据的类型
mybatis 中where id in ()情况,括号中是list的时候
最新推荐文章于 2025-02-21 14:39:32 发布