<delete id="deleteUser" parameterType="list">
delete from user where id in
<foreach collection="list" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="findUserBySex" resultType="user">
select * from user where name in
<foreach collection="roleNoList" item="name" index="index" open="(" separator="," close=")">
#{roleNo}
</foreach>
</select>
<insert id="addUser" parameterType="user" >
insert into user(name,id,code) values
<foreach collection="list" item="item" separator=",">
(#{item.name},#{item.id},#{item.code})
</foreach>
</insert>
<update id="updateUser" parameterType="user">
update user set a = #{fptm},b=#{csof} where c in
<foreach collection="list" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</update>
网友评论