mybatis注解开发 @Delete 批量删除

注意:<script></script>
@Delete("<script>
        delete from product where id in 
        <foreach collection='array' item='id' open='(' separator=',' close=')'>#{id}</foreach>
                  </script>")
        
void delete(int[] ids);

posted @ 2020-11-29 19:19  路要一步一步走  阅读(2877)  评论(0编辑  收藏  举报