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.
25 lines
919 B
25 lines
919 B
package com.msb.mapper;
|
|
|
|
import com.msb.pojo.UserData;
|
|
import org.apache.ibatis.annotations.*;
|
|
|
|
import java.util.List;
|
|
|
|
@Mapper
|
|
public interface Account {
|
|
//进行查询的函数
|
|
@Select("select * from UserData where 账号=#{param1};")
|
|
public List<UserData> find(String zhanghao);
|
|
//进行更新的函数
|
|
@Update("update UserData set 我们要修改的值 where 我们选中要修改的值;")
|
|
public Integer update();
|
|
//进行插入的函数
|
|
@Insert("insert into UserData values(我们要插入的新值);")
|
|
public Integer insert();
|
|
//进行删除的函数
|
|
@Delete(" delete from UserData where 账号=#{param1} ;")
|
|
public Integer delete(String zhanghao);
|
|
@Insert("insert into UserData(对应的值) select replace(账号,账号,#{param2}), 要插入的值 from UserData where 账号=#{param1};")
|
|
public Integer share(String zhanghao_src,String zhanghao_dst);
|
|
}
|