|
@@ -1,27 +0,0 @@
|
|
|
-<?xml version="1.0" encoding="utf-8" ?>
|
|
|
-<!DOCTYPE mapper
|
|
|
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
- "https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
-
|
|
|
-<mapper namespace="org.ajnb.mapper.UserIface">
|
|
|
-
|
|
|
- <parameterMap id="pm" type="org.ajnb.vo.User"></parameterMap>
|
|
|
- <resultMap id="rm" type="org.ajnb.vo.User"></resultMap>
|
|
|
-
|
|
|
- <select id="selectUser" resultMap="rm">
|
|
|
- select id, name, age, email from user
|
|
|
- </select>
|
|
|
-
|
|
|
- <insert id="addUser" parameterMap="pm">
|
|
|
- insert into user values(#{id}, #{name}, #{age}, #{email})
|
|
|
- </insert>
|
|
|
-
|
|
|
- <delete id="deleteUser" parameterMap="pm">
|
|
|
- delete from user where id = #{id}
|
|
|
- </delete>
|
|
|
-
|
|
|
- <update id="updateUser" parameterMap="pm">
|
|
|
- update user set name = #{name}, age = #{age}, email = #{email} where id = #{id}
|
|
|
- </update>
|
|
|
-
|
|
|
-</mapper>
|