2 Commits 0a19d101d8 ... 94c7808721

Autor SHA1 Mensaje Fecha
  AJNB 94c7808721 Merge remote-tracking branch 'origin/master' hace 2 meses
  AJNB ca230a7772 hjj hace 2 meses
Se han modificado 2 ficheros con 0 adiciones y 46 borrados
  1. 0 19
      src/main/java/org/ajnb/mapper/UserIface.java
  2. 0 27
      src/main/resources/mapper/user.xml

+ 0 - 19
src/main/java/org/ajnb/mapper/UserIface.java

@@ -1,19 +0,0 @@
-package org.ajnb.mapper;
-
-import org.ajnb.vo.User;
-import org.apache.ibatis.annotations.Mapper;
-
-import java.util.List;
-
-@Mapper
-public interface UserIface {
-
-    public void addUser(User user);
-
-    public void updateUser(User user);
-
-    public void deleteUser(User user);
-
-    public List<User> selectUser(User user);
-
-}

+ 0 - 27
src/main/resources/mapper/user.xml

@@ -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>