mirror of
https://github.com/FreeeBird/hotel.git
synced 2025-11-02 21:44:50 +08:00
更新房间类型的接口
This commit is contained in:
@@ -10,9 +10,13 @@ public interface RoomTypeService {
|
||||
|
||||
int delRoomType(RoomType roomType);
|
||||
|
||||
int delById(int typeId);
|
||||
|
||||
int updateRoomType(RoomType roomType);
|
||||
|
||||
RoomType selectByName(RoomType roomType);
|
||||
|
||||
RoomType selectById(int typeId);
|
||||
|
||||
List<RoomType> findAllType();
|
||||
}
|
||||
|
||||
@@ -23,9 +23,14 @@ public class RoomTypeServiceImpl implements RoomTypeService {
|
||||
return roomTypeMapper.deleteByRoomType(roomType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int delById(int typeId) {
|
||||
return roomTypeMapper.deleteByPrimaryKey(typeId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateRoomType(RoomType roomType) {
|
||||
return roomTypeMapper.updateByRoomTypeSelective(roomType);
|
||||
return roomTypeMapper.updateByPrimaryKeySelective(roomType);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -33,6 +38,11 @@ public class RoomTypeServiceImpl implements RoomTypeService {
|
||||
return roomTypeMapper.selectByRoomType(roomType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RoomType selectById(int typeId) {
|
||||
return roomTypeMapper.selectByPrimaryKey(typeId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<RoomType> findAllType() {
|
||||
return roomTypeMapper.findAll();
|
||||
|
||||
Reference in New Issue
Block a user