完成RoomService类编写,通过单元测试

This commit is contained in:
freeebird
2018-11-12 16:43:47 +08:00
parent 01475b6215
commit 435e38198d
6 changed files with 171 additions and 29 deletions

View File

@@ -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();
}