tlias管理系统-员工批量删除实现功能实现

This commit is contained in:
2025-10-11 13:44:06 +08:00
parent 7b98564143
commit 12596a4fa1
5 changed files with 23 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"https://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.inmind.mapper.EmpMapper">
<select id="list" resultType="com.inmind.pojo.Emp">
select * from emp
<where>
@@ -19,4 +20,11 @@
</where>
order by update_time desc
</select>
<delete id="delete">
delete from emp where id in
<foreach collection="ids" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>