|
|
@@ -27,6 +27,11 @@ public class CesRoomPricePlanServiceImpl extends ServiceImpl<CesRoomPricePlanMap
|
|
|
@Resource
|
|
|
private CesRoomPricePlanMapper pricePlanMapper;
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取当前酒店的房价方案
|
|
|
+ * @param hotelId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
public Result getRoomPlans(String hotelId){
|
|
|
List<CesRoomPricePlan> planList = pricePlanMapper.selectList(Wrappers.<CesRoomPricePlan>lambdaQuery().eq(CesRoomPricePlan::getHotelId,hotelId).eq(CesRoomPricePlan::getInvalid,false));
|
|
|
if(CollectionUtil.isEmpty(planList)) return Result.ok(new ArrayList<>());
|