package cn.mafangui.hotel.mapper; import cn.mafangui.hotel.entity.Room; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Component; import java.util.List; @Component public interface RoomMapper { int deleteByPrimaryKey(Integer roomId); int insert(Room record); int insertSelective(Room record); Room selectByPrimaryKey(Integer roomId); Room selectByNumber(String roomNumber); int updateByPrimaryKeySelective(Room record); int updateByPrimaryKey(Room record); List selectByType(Integer typeId); List selectByStatus(Integer roomStatus); List selectAll(); Room randomSelectByTypeAndStatus(@Param("typeId") Integer typeId,@Param("roomStatus") Integer roomStatus); }