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);
}
最近下载更多
最近浏览更多
一行白鹭 LV10
7月14日
Ella0902
2024年12月18日
暂无贡献等级
15719908287 LV10
2024年11月17日
气之子dss LV4
2024年6月24日
gougeyishi
2024年6月22日
暂无贡献等级
xin xie LV1
2024年6月13日
ma406805131 LV19
2024年5月11日
2578233069
2024年4月25日
暂无贡献等级
yolo_light LV1
2023年12月21日
wwwww816 LV5
2023年12月19日

