id="getUserById" resultType="user" parameterType="Integer" resultMap="UserMap">
select * from user where id = #{id}
id="selectByName" resultType="com.wei.pojo.Products" parameterType="java.lang.String">select * from products where pname like "%"#{name}"%"
update products set pname = #{pname},price = #{price},pdate = #{pdate},cid = #{cid} where pid = #{pid}
delete from products where pid = #{pid}
insert into products value (null,#{pname},#{price},#{pdate},#{cid})