parent
c3c8389041
commit
ccbc14f0d3
@ -0,0 +1,24 @@
|
||||
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);
|
||||
}
|
Loading…
Reference in new issue