You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.3 KiB
37 lines
1.3 KiB
11 months ago
|
<?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.example.webproject.com.Mapper.user_data_operator">
|
||
|
<!-- // @Select("select * from user_data_table")-->
|
||
|
<!-- public List<user_data> findAll();-->
|
||
|
|
||
|
<resultMap id="result_user_data" type="com.example.webproject.com.Pojo.user_data">
|
||
|
</resultMap>
|
||
|
<parameterMap id="param_user_data" type="com.example.webproject.com.Pojo.user_data">
|
||
|
</parameterMap>
|
||
|
|
||
|
<select id="findAll" resultMap="result_user_data">
|
||
|
select * from user_data_table
|
||
|
</select>
|
||
|
|
||
|
|
||
|
<select id="findOne" resultMap="result_user_data" parameterType="string">
|
||
|
select * from user_data_table where txl_account=#{txl_account}
|
||
|
</select>
|
||
|
|
||
|
|
||
|
<select id="findOneByName" resultMap="result_user_data" parameterType="string">
|
||
|
select * from user_data_table where txl_account=#{txl_account} and txl_name=#{txl_name}
|
||
|
</select>
|
||
|
|
||
|
<delete id="deleteOne" parameterType="string" >
|
||
|
delete from user_data_table where txl_account=#{txl_account} and txl_name=#{txl_name}
|
||
|
</delete>
|
||
|
|
||
|
<insert id="insertOne" parameterType="string">
|
||
|
insert into user_data_table values(#{account},#{name},#{contact_phone_number},'','','','','','','','')
|
||
|
</insert>
|
||
|
|
||
|
|
||
|
</mapper>
|