首页>代码>spring boot+mybatis+layui构建的用户增删改查实例,支持分页查询,模糊查询>/SpringBootMybatisDemo/src/main/java/com/example/SpringBootMybatisDemo/mapper/UserMapper.java
package com.example.SpringBootMybatisDemo.mapper; import com.example.SpringBootMybatisDemo.entity.User; import org.apache.ibatis.annotations.*; import org.springframework.stereotype.Repository; import java.util.List; import java.util.Map; /** * 创建人:thj * 创建时间: 2018/6/26 9:28 * 用途: */ //@Repository public interface UserMapper { // @Select("SELECT * FROM USER WHERE id = #{id}") User getUserById(Integer id); // @Select("SELECT * FROM USER") public List<User> getUserList(String name,int page, int limit); // @Insert("insert into USER(name, age) values(#{username}, #{age})") public int add(User user); // @Update("UPDATE USER SET name = #{user.name} , age = #{user.age} WHERE id = #{id}") public int update(User user); // @Delete("DELETE FROM USER WHERE id = #{id} ") public int delete(Integer id); int getUserCount(); }

iceboard LV2
14小时前
zhaoming200677 LV12
2022年12月3日
呵呵哈哈哈 LV10
2022年9月3日
lucuey LV1
2022年7月8日
cab123123 LV8
2022年4月25日
菠萝蜜 LV3
2022年2月19日
微信网友_5822776429744128 LV6
2022年2月14日
Fireloli LV9
2021年12月17日
9843637 LV9
2021年12月12日
1207748096 LV6
2021年11月29日

iceboard LV2
14小时前
hbsoft2008 LV16
3月20日
Rucoding LV5
3月10日
微信网友_6319582217965568 LV3
2月20日
赖小宝 LV3
2月9日
yohohero LV1
1月14日
bluece
1月12日
暂无贡献等级
lonny668 LV3
2022年12月12日
zhaoming200677 LV12
2022年12月3日
内心向阳 LV4
2022年11月30日