|
@@ -1,11 +1,9 @@
|
|
|
<?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.lovecoding.test.dao.UserMapper">
|
|
|
-
|
|
|
<select id="selectUser" resultType="com.lovecoding.test.pojo.User" >
|
|
|
SELECT * FROM `tb_user`;
|
|
|
</select>
|
|
|
-
|
|
|
<select id="selectUserByone" resultType="com.lovecoding.test.pojo.User" >
|
|
|
SELECT * FROM `tb_user` Limit 1;
|
|
|
</select>
|
|
@@ -15,6 +13,4 @@
|
|
|
<select id="selectUserByIdandName" resultType="com.lovecoding.test.pojo.User">
|
|
|
SELECT * FROM `tb_user` WHERE id = #{id} AND username = #{name} Limit 1;
|
|
|
</select>
|
|
|
-
|
|
|
-
|
|
|
</mapper>
|