<if test="orderIdList != null and orderIdList.size() != 0">
and order_id in
<foreach item='order_id' collection='orderIdList' open='(' separator=',' close=')' >
#{order_id}
</foreach>
</if>
mybatis if test判断 list不为空及foreach的用法
最新推荐文章于 2024-05-03 11:47:20 发布