package com.qm.smm.mapper; import java.util.List; import org.apache.ibatis.annotations.Delete; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Update; import org.springframework.stereotype.Repository; import com.qm.smm.entity.User; /** * 用户映射 * @author quanmin * */ @Repository(value="userMapper") public interface UserMapper { @Select("select * from user where id = #{0}") public User selectUser(int id); @Select("select id,name,pwd from user") public List<User> findUserList(); @Insert("insert into user(name,pwd) values(#{0},#{1})") public void add(String name,String pwd); @Select("select * from user where name = #{0} and pwd = #{1}") public User login(String name,String pwd); @Update("update user set pwd=#{1} where id=#{0}") public void update(int id); @Delete("delete from user where id=#{0}") public void delete(int id); }
最近下载更多
最近浏览更多
2578233069
前天
暂无贡献等级
yolo_light LV1
2023年12月21日
wwwww816 LV3
2023年12月19日
zhumeng168 LV5
2023年7月8日
gecongkai LV8
2023年6月22日
神经蛙-
2023年5月17日
暂无贡献等级
微信网友_6442588254851072 LV2
2023年4月22日
李亮 LV19
2023年3月6日
云龙123456 LV7
2023年2月21日
qwer123978ca LV1
2022年12月19日