1.mybatis uses the list collection as a parameter
Use the list entity class as a parameter for batch deletion
mapper.java
void deleteUserByIds(@Param("userlist") List list);
user.xml
delete from user where id in
#{item.id}
Use the list entity class as a parameter for batch deletion
mapper.java
void deleteUserByIds(@Param("userlist") List list);
user.xml
delete from user where id in
#{item.id}