package com.matrix.system.hive.dao; import java.util.Date; import java.util.List; import com.matrix.system.hive.bean.SysBedState; import org.apache.ibatis.annotations.Param; import com.matrix.core.pojo.PaginationVO; /** * * @date 2016-07-03 20:53 */ public interface SysBedStateDao{ public int insert(SysBedState sysBedState); public int update(SysBedState sysBedState); public int deleteByIds(@Param("list") List list); public int deleteById(Long id); public List selectInPage(@Param("record") SysBedState sysBedState, @Param("pageVo") PaginationVO pageVo); public List selectByModel(@Param("record") SysBedState sysBedState); public int selectTotalRecord(@Param("record") SysBedState sysBedState); public SysBedState selectById(Long id); public int checkBedClash(@Param("record") SysBedState bedState); public SysBedState selectBySerIdAndBedId(@Param("serId") Long serId, @Param("bedId") Long bedId); /** * * 查询指定时间里床位使用情况 * @author:姜友瑶 * @param minTime * @param maxTime * @param bedId * @return * 返回类型 List * @date 2016年8月30日 */ public List selectByTimeAndBed(@Param("minTime") Date minTime, @Param("maxTime") Date maxTime, @Param("bedId") Long bedId); int deleteByServiceId(Long serviceId); }