package com.jiudian.manage.mapper; import com.jiudian.manage.model.Room; import org.springframework.stereotype.Repository; import java.util.List; //MyBatis 的 Mapper 接口,用于定义与房间表相关的数据库操作 @Repository public interface RoomMapper { int deleteByPrimaryKey(Integer roomid); int insert(Room record); int insertSelective(Room record); Room selectByPrimaryKey(Integer roomid); int updateByPrimaryKeySelective(Room record); int updateByPrimaryKey(Room record); List selectRoomByStateType(Room stateType); }