mirror of
https://github.com/FreeeBird/hotel.git
synced 2025-11-02 21:44:50 +08:00
枚举类编写
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -22,4 +22,6 @@ public interface RoomTypeMapper {
|
||||
List<RoomType> selectAll();
|
||||
|
||||
RoomType selectByRoomType(String roomType);
|
||||
}
|
||||
|
||||
List<RoomType> selectAllWithRest();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user