枚举类编写

This commit is contained in:
freeebird
2018-11-29 11:51:42 +08:00
parent ed0f7f87aa
commit 1cdb072ec6
18 changed files with 214 additions and 191 deletions

View File

@@ -1,6 +1,7 @@
package cn.mafangui.hotel.mapper;
import cn.mafangui.hotel.entity.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import java.util.List;
@@ -23,7 +24,7 @@ public interface OrderMapper {
List<Order> selectByUserId(Integer userId);
List<Order> selectAllByUser(Integer userId,Integer orderStatus);
List<Order> selectAllByUser(@Param("userId") Integer userId,@Param("orderStatus") Integer orderStatus);
}

View File

@@ -1,6 +1,7 @@
package cn.mafangui.hotel.mapper;
import cn.mafangui.hotel.entity.Room;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import java.util.List;
@@ -24,5 +25,5 @@ public interface RoomMapper {
List<Room> selectAll();
Room randomSelectByTypeAndStatus(Integer typeId,Integer roomStatus);
Room randomSelectByTypeAndStatus(@Param("typeId") Integer typeId,@Param("roomStatus") Integer roomStatus);
}

View File

@@ -22,4 +22,6 @@ public interface RoomTypeMapper {
List<RoomType> selectAll();
RoomType selectByRoomType(String roomType);
}
List<RoomType> selectAllWithRest();
}