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.
tongxun/account_operator.java

24 lines
802 B

package com.example.webproject.com.Mapper;
import com.example.webproject.com.Pojo.account;
import org.apache.ibatis.annotations.*;
import java.util.List;
@Mapper
public interface account_operator {
//查出所有的记录
// @Select("select * from account_table")
public List<account> findAll();
// @Select("select * from account_table where txl_account=#{account}")
public account findOne( @Param("txl_account") String txl_account);
//新增加一条记录
// @Insert("insert into account_table values(txl_account=#{account},txl_password=#{password})")
public Integer insertOne(@Param("account") account account);
// //删除一条记录
//// @Delete("delete from account_table where txl_account=#{account}")
public Integer deleteOne(String txl_account);
}