2025-08-18 13:08:02 +08:00
|
|
|
<?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">
|
2025-08-18 20:07:04 +08:00
|
|
|
<mapper namespace="fdsgfgd">
|
2025-08-18 13:08:02 +08:00
|
|
|
<select id="selectList" resultType="com.example.practice.entity.User">
|
|
|
|
select * from user
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectOne" resultType="com.example.practice.entity.User">
|
|
|
|
select * from user where id = #{id}
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<insert id="insert">
|
|
|
|
insert into user values (#{id}, #{nickName}, #{phoneNumber}, #{userAccount}, #{userPassword}, #{userRole}, #{money})
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
<delete id="delete">
|
|
|
|
delete from user where id = #{id}
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
<update id="update">
|
|
|
|
update user set nickName = #{nickName}, phoneNumber = #{phoneNumber}, userAccount = #{userAccount}, userPassword = #{userPassword}, userRole = #{userRole}, money = #{money} where id = #{id}
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|
2025-08-18 20:07:04 +08:00
|
|
|
<!--SQL映射文件-->
|