tlias管理系统-员工批量删除实现功能实现
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user