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.

35 lines
1.5 KiB

<?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.account_operator">
<!-- @Select("select * from account_table")-->
<!-- public List<account> findAll();-->
<parameterMap id="param_account" type="com.example.webproject.com.Pojo.account"></parameterMap>
<resultMap id="result_account" type="com.example.webproject.com.Pojo.account"></resultMap>
<select id="findAll" resultMap="result_account">
select * from account_table
</select>
<!-- @Select("select * from account_table where txl_account=#{account}")-->
<!-- public account findOne(@Param("account")String account);-->
<select id="findOne" parameterType="String" resultMap="result_account">
select * from account_table where txl_account=#{txl_account}
</select>
<!-- @Insert("insert into account_table values(txl_account=#{account},txl_password=#{password})")-->
<!-- public Integer insertOne(@Param("account") account account);-->
<insert id="insertOne" parameterMap="param_account">
insert into account_table values( #{account.txl_account}, #{account.txl_password})
</insert>
<!-- @Delete("delete from account_table where txl_account=#{account}")-->
<!-- public Integer deleteOne(@Param("account")String account);-->
<delete id="deleteOne" parameterType="String">
delete from account_table where txl_account=#{txl_account}
</delete>
</mapper>