<select id="queryList" parameterClass="java.util.List" resultClass="Order">
select t.order_no orderSq,t.order_point orderPoint from orders t where t.order_no in
<iterate prepend="" open="(" close=")" conjunction=",">
#[]#
</iterate>
order by t.order_time
</select>
ibatis 传入数组然后in
最新推荐文章于 2023-06-14 15:19:51 发布
本文介绍了一个使用MyBatis进行批量订单查询的例子。通过<select>标签定义了SQL查询语句,利用<iterate>标签实现对订单编号列表的遍历,并按时间顺序排列查询结果。
1660

被折叠的 条评论
为什么被折叠?



