mirror of
https://github.com/FreeeBird/hotel.git
synced 2025-11-02 21:44:50 +08:00
完成RoomService类编写,通过单元测试
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
package cn.mafangui.hotel.mapper;
|
||||
|
||||
import cn.mafangui.hotel.entity.Room;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
@Component
|
||||
public interface RoomMapper {
|
||||
int deleteByPrimaryKey(Integer roomId);
|
||||
|
||||
@@ -14,4 +17,10 @@ public interface RoomMapper {
|
||||
int updateByPrimaryKeySelective(Room record);
|
||||
|
||||
int updateByPrimaryKey(Room record);
|
||||
|
||||
List<Room> selectByType(Integer typeId);
|
||||
|
||||
List<Room> selectByStatus(Integer roomStatus);
|
||||
|
||||
List<Room> selectAll();
|
||||
}
|
||||
Reference in New Issue
Block a user