mirror of
https://github.com/FreeeBird/hotel.git
synced 2025-06-29 00:38:05 +08:00
32 lines
769 B
Java
32 lines
769 B
Java
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<Room> selectByType(Integer typeId);
|
|
|
|
List<Room> selectByStatus(Integer roomStatus);
|
|
|
|
List<Room> selectAll();
|
|
|
|
Room randomSelectByTypeAndStatus(@Param("typeId") Integer typeId,@Param("roomStatus") Integer roomStatus);
|
|
}
|