完成酒店信息接口编写

This commit is contained in:
freeebird
2018-11-15 21:10:47 +08:00
parent c8124bbc70
commit f7ea1c33eb
7 changed files with 197 additions and 22 deletions

View File

@@ -1,7 +1,11 @@
package cn.mafangui.hotel.mapper;
import cn.mafangui.hotel.entity.Hotel;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
public interface HotelMapper {
int deleteByPrimaryKey(Integer hotelId);
@@ -11,7 +15,13 @@ public interface HotelMapper {
Hotel selectByPrimaryKey(Integer hotelId);
Hotel selectByName(String hotelName);
List<Hotel> selectAll();
int updateByPrimaryKeySelective(Hotel record);
int updateByPrimaryKey(Hotel record);
}