mirror of
https://github.com/FreeeBird/hotel.git
synced 2025-11-02 21:44:50 +08:00
完成RoomTypeService类编写,通过单元测试
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user