<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN""http://mybatis.org/dtd/mybatis-3-mapper.dtd"><mapper namespace="com.ftz.Demo.dao.UserMapper"><select id="getUserList" resultType="com.ftz.Demo.po.User">
select * from mybatis.user
</select><select id="getUserById" parameterType="int" resultType="com.ftz.Demo.po.User">
select * from mybatis.user where id = #{id}</select><insert id="addUser" parameterType="com.ftz.Demo.po.User">
insert into mybatis.user (id,name,pwd) values (#{id},#{name},#{pwd});</insert><update id="updateUser" parameterType="com.ftz.Demo.po.User">
update mybatis.user set name = #{name},pwd=#{pwd} where id = #{id};</update><delete id="deleteUser" parameterType="int">
delete from mybatis.user where id = #{id};</delete></mapper>