|
@@ -171,6 +171,9 @@ public class AppHomePageAction extends ActionSupport implements ServletRequestAw
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* hotelId 酒店id
|
|
* hotelId 酒店id
|
|
|
|
|
+ * queryStartTime
|
|
|
|
|
+ * queryEndTime
|
|
|
|
|
+ * userId
|
|
|
* 通过酒店的id获取到房间信息
|
|
* 通过酒店的id获取到房间信息
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
@@ -193,6 +196,11 @@ public class AppHomePageAction extends ActionSupport implements ServletRequestAw
|
|
|
Hotel hotel = appHomePageService.getHotelAndHouseByHotelId(hotelId,startDate, endDate);
|
|
Hotel hotel = appHomePageService.getHotelAndHouseByHotelId(hotelId,startDate, endDate);
|
|
|
hotel.setHotelFileInfoList(fileService.queryListByLinkId(hotelId));
|
|
hotel.setHotelFileInfoList(fileService.queryListByLinkId(hotelId));
|
|
|
|
|
|
|
|
|
|
+ // 添加是否已收藏的酒店
|
|
|
|
|
+ if (!Func.checkNull(userId))
|
|
|
|
|
+ appHomePageService.assignCollect(userId, hotel);
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
// 通过时间区间查询房间信息,并带好是否有房标识给前台
|
|
// 通过时间区间查询房间信息,并带好是否有房标识给前台
|
|
|
jsonObject.put(B.code,ResultStatusCode.OK.getStatus());
|
|
jsonObject.put(B.code,ResultStatusCode.OK.getStatus());
|
|
|
jsonObject.put(B.data,ResultUtil.ok(hotel));
|
|
jsonObject.put(B.data,ResultUtil.ok(hotel));
|
|
@@ -201,8 +209,12 @@ public class AppHomePageAction extends ActionSupport implements ServletRequestAw
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 通过酒店的id获取到酒店详细信息
|
|
* 通过酒店的id获取到酒店详细信息
|
|
|
|
|
+ * hotelId
|
|
|
|
|
+ * userId
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
public String getHotelInfoByHotelId()
|
|
public String getHotelInfoByHotelId()
|
|
@@ -227,6 +239,10 @@ public class AppHomePageAction extends ActionSupport implements ServletRequestAw
|
|
|
}
|
|
}
|
|
|
hotel.setHotelFileInfoList(fileService.queryListByLinkId(hotelId));
|
|
hotel.setHotelFileInfoList(fileService.queryListByLinkId(hotelId));
|
|
|
|
|
|
|
|
|
|
+ // 添加是否已收藏的酒店
|
|
|
|
|
+ if (!Func.checkNull(userId))
|
|
|
|
|
+ appHomePageService.assignCollect(userId, hotel);
|
|
|
|
|
+
|
|
|
jsonObject.put(B.code,ResultStatusCode.OK.getStatus());
|
|
jsonObject.put(B.code,ResultStatusCode.OK.getStatus());
|
|
|
jsonObject.put(B.data,hotel);
|
|
jsonObject.put(B.data,hotel);
|
|
|
ResponseUtil.writeJson(ServletActionContext.getResponse(),jsonObject.toString());
|
|
ResponseUtil.writeJson(ServletActionContext.getResponse(),jsonObject.toString());
|