package com.liu.mapper; import java.util.List; import org.apache.ibatis.annotations.Delete; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Update; import com.liu.pojo.Students; public interface StudentsMapper { @Select("select * from student") List<Students> show(); @Select("select count(*) from student ") int selCount(); @Select("select * from student limit #{0},#{1}") List<Students> selBypage(int pageStart,int pageSize); @Update("update student set name=#{name} , sort=#{sort} , remark=#{remark} where id=#{id}") int updateStu(Students stu); @Delete("delete from student where id=#{id}") int deleteStu(int id); @Select("select * from student where name like CONCAT(CONCAT('%', #{sdfa}), '%')") List<Students> sel(String nickname); @Select("select * from student where sort=#{stuSort}") Students selBySort(int stuSort); @Insert("insert into student (name,sort,remark) values ( #{name} , #{sort} , #{remark})") int insertStu(Students Stu); }
最近下载更多
沈从文 LV2
1月1日
aaa5849310 LV25
2022年3月10日
543666826 LV33
2021年11月20日
Gxb001020 LV10
2021年6月18日
酒后少年 LV6
2021年5月15日
liuxie LV12
2021年4月16日
hdf999 LV12
2021年4月3日
张先生1121 LV3
2021年1月11日
snowing_for LV8
2020年9月16日
xiao_zheng LV7
2020年9月15日
最近浏览更多
沈从文 LV2
2023年12月31日
微信网友_6802139027345408 LV2
2023年12月31日
taoshen95 LV14
2023年12月25日
wwwww816 LV3
2023年12月19日
wanglinddad LV55
2023年12月19日
张朕朕 LV3
2023年9月8日
微信网友_6591303770624000 LV1
2023年8月4日
gecongkai LV8
2023年6月22日
xiang123xiang LV1
2023年6月18日
c469893928 LV2
2023年6月10日