| package com.matrix.system.hive.dao; | 
|   | 
| import java.util.List; | 
|   | 
|   | 
| import com.matrix.system.hive.bean.SysBedInfo; | 
| import org.apache.ibatis.annotations.Param; | 
|   | 
| import com.matrix.system.hive.bean.SysProjServices; | 
| import com.matrix.core.pojo.PaginationVO; | 
|   | 
|   | 
| /** | 
|  * | 
|  * @date 2016-07-03 20:53 | 
|  */ | 
|   | 
|   | 
| public interface SysBedInfoDao{ | 
|   | 
|     public int insert(SysBedInfo sysBedInfo); | 
|         | 
|     public int update(SysBedInfo sysBedInfo); | 
|      | 
|     public int deleteByIds(@Param("list") List<Long> list); | 
|      | 
|     public int deleteById(Long id); | 
|      | 
|     public List<SysBedInfo> selectInPage(@Param("record") SysBedInfo sysBedInfo, @Param("pageVo") PaginationVO pageVo); | 
|   | 
|     public List<SysBedInfo> selectByModel(@Param("record") SysBedInfo sysBedInfo); | 
|      | 
|     public int  selectTotalRecord(@Param("record") SysBedInfo sysBedInfo); | 
|      | 
|     public SysBedInfo  selectById(Long id); | 
|     /** | 
|      * 查询空闲的床位数量 | 
|     * @Title: findFreeBedCount  | 
|     * @author:jyy | 
|     * @param sysProjServices | 
|     * @return     | 
|     * int    返回类型  | 
|     * @date 2016年8月10日 上午9:45:54  | 
|     * @throws | 
|      */ | 
|     public int findFreeBedCount(@Param("projService") SysProjServices sysProjServices); | 
|     /** | 
|      * 查询空闲的床位 | 
|     * @Title: findFreeBedCount  | 
|     * @author:jyy | 
|     * @param sysProjServices | 
|     * @return     | 
|     * int    返回类型  | 
|     * @date 2016年8月10日 上午9:45:54  | 
|     * @throws | 
|      */ | 
|     public List<SysBedInfo> findFreeBed(@Param("projService") SysProjServices sysProjServices); | 
|      | 
| } |