Mybatis @Select注解,使用in传入ids数组做为参数

在使用ids集合做为参数时,首先想应该是以下作法:java @Select("select id, name, user_id from label where id in <foreach collection=\"ids\" index = \"index\" item = \"id\" open= \"(\" separator=\",\" close=\")\"> #{id} </f
相关文章
相关标签/搜索