parent
4090691074
commit
6e0be44ba9
@ -0,0 +1,29 @@
|
|||||||
|
package com.itheima.dao;
|
||||||
|
|
||||||
|
import com.itheima.po.Dormitory;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 管理员DAO层接口
|
||||||
|
*/
|
||||||
|
public interface DormitoryDao {
|
||||||
|
/**
|
||||||
|
* 进行分页查询
|
||||||
|
*/
|
||||||
|
|
||||||
|
//获取总条数
|
||||||
|
public Integer totalCount(@Param("a_name") String a_name, @Param("s_dormitoryid") Integer s_dormitoryid,@Param("d_dormbuilding") String d_dormbuilding);
|
||||||
|
//获取用户列表
|
||||||
|
public List<Dormitory> getDormitoryList(@Param("a_name") String a_name, @Param("s_dormitoryid") Integer s_dormitoryid, @Param("d_dormbuilding") String d_dormbuilding, @Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize);
|
||||||
|
|
||||||
|
public int addDormitory(Dormitory dormitory); //添加宿舍信息
|
||||||
|
public int deleteDormitory(Integer d_id); //删除宿舍信息
|
||||||
|
public int updateDormitory(Dormitory dormitory); //修改宿舍信息
|
||||||
|
public Dormitory findDormitoryById(Integer d_id);
|
||||||
|
|
||||||
|
public List<Dormitory> findDormitoryStudent(Dormitory dormitory);//查询宿舍人员信息
|
||||||
|
public List<Dormitory> getAll();
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in new issue