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

This commit is contained in:
freeebird
2018-11-12 16:19:23 +08:00
parent dbee98a4f0
commit 01475b6215
7 changed files with 178 additions and 39 deletions

View File

@@ -1,17 +1,25 @@
package cn.mafangui.hotel.mapper;
import cn.mafangui.hotel.entity.RoomType;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
public interface RoomTypeMapper {
int deleteByPrimaryKey(Long typeId);
int deleteByPrimaryKey(Integer typeId);
int insert(RoomType record);
int insertSelective(RoomType record);
RoomType selectByPrimaryKey(Long typeId);
RoomType selectByPrimaryKey(Integer typeId);
int updateByPrimaryKeySelective(RoomType record);
int updateByPrimaryKey(RoomType record);
List<RoomType> selectAll();
RoomType selectByRoomType(String roomType);
}