删除部门类,修改房间、房型、订单相关接口

This commit is contained in:
freeebird
2018-11-28 18:48:04 +08:00
parent 556e257d45
commit ed0f7f87aa
18 changed files with 189 additions and 198 deletions

View File

@@ -1,17 +0,0 @@
package cn.mafangui.hotel.mapper;
import cn.mafangui.hotel.entity.Department;
public interface DepartmentMapper {
int deleteByPrimaryKey(Integer departmentId);
int insert(Department record);
int insertSelective(Department record);
Department selectByPrimaryKey(Integer departmentId);
int updateByPrimaryKeySelective(Department record);
int updateByPrimaryKey(Department record);
}

View File

@@ -1,7 +1,11 @@
package cn.mafangui.hotel.mapper;
import cn.mafangui.hotel.entity.Order;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
public interface OrderMapper {
int deleteByPrimaryKey(Integer orderId);
@@ -14,4 +18,12 @@ public interface OrderMapper {
int updateByPrimaryKeySelective(Order record);
int updateByPrimaryKey(Order record);
}
List<Order> selectAll();
List<Order> selectByUserId(Integer userId);
List<Order> selectAllByUser(Integer userId,Integer orderStatus);
}

View File

@@ -23,4 +23,6 @@ public interface RoomMapper {
List<Room> selectByStatus(Integer roomStatus);
List<Room> selectAll();
}
Room randomSelectByTypeAndStatus(Integer typeId,Integer roomStatus);
}