package com.hp.dao;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import com.hp.domain.User;
import com.hp.domain.Feedbcak;
public interface FeedbcakMapper {
//显示所有
public List<Feedbcak> findAll(Feedbcak feedbcak);
//登录
@Select("select * from tab_user where uname=#{uname} and pwd=#{pwd} ")
public List<User>login(User user);
//绑定下拉列表
@Select("select id from tab_user where uname = #{uname}")
public Integer findUsers(String uname);
//删除
@Delete("DELETE FROM tab_feedback WHERE id=#{id}")
public void del(Integer id);
//新增
@Insert("insert tab_feedback(author,commit_time,title,content,open)values(#{author},NOW(),#{title},#{content},#{open})")
public void add(Feedbcak feedbcak);
}