1.添加对房间信息的简单操作

2.新增时间格式化的工具类
This commit is contained in:
freeebird
2018-10-23 20:43:43 +08:00
parent 931447aa39
commit 833ff34b64
12 changed files with 657 additions and 56 deletions

View File

@@ -1,17 +1,25 @@
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);
int insert(Room record);
int insertSelective(Room record);
Room selectByPrimaryKey(Integer roomId);
int updateByPrimaryKeySelective(Room record);
int updateByPrimaryKey(Room record);
int insert(Room record);
int deleteByPrimaryKey(Integer roomId);
int deleteByRoomNumber(String roomNumber);
int updateByPrimaryKeySelective(Room record);
Room selectByRoomId(Integer roomId);
Room selectByRoomNumber(String roomNumber);
List<Room> selectAllRoom();
List<Room> selectByType(String typeName);
List<Room> selectByStatus(String status);
}