<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的时候
最新推荐文章于 2022-10-18 04:30:00 发布