mabaits 中in foreach

category_id IN
<foreach item="categoryId" index="index" collection="categoryIds" open="("
separator="," close=")">
#{categoryId}
</foreach>

categoryIds为传过来的数组

原文地址:https://www.cnblogs.com/ling-1991/p/9081738.html