|
@@ -66,15 +66,17 @@ public class WebsiteProjectGroupPurchaseController {
|
|
|
PageMethod.startPage(dto.getPageNum(), dto.getPageSize(), dto.getCount());
|
|
|
}
|
|
|
|
|
|
+ SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
// 判断是不是有出发日期查询条件,如果没传,默认查前后30天的数据
|
|
|
if(StringUtils.isBlank(dto.getTravelStartTimeStart()) && StringUtils.isBlank(dto.getTravelStartTimeEnd())) {
|
|
|
- SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
Date startDate = MyDateUtil.addDays(new Date(), -30);
|
|
|
Date endDate = MyDateUtil.addDays(new Date(), 30);
|
|
|
|
|
|
dto.setTravelStartTimeStart(format.format(startDate));
|
|
|
dto.setTravelStartTimeEnd(format.format(endDate));
|
|
|
}
|
|
|
+ dto.setEndTimeStart(format.format(MyDateUtil.addDays(new Date(), 1)));
|
|
|
+
|
|
|
TourProjectGroupPurchase tourProjectGroupPurchaseFilter = MyModelUtil.copyTo(dto, TourProjectGroupPurchase.class);
|
|
|
MyOrderParam myOrderParam = new MyOrderParam();
|
|
|
// 如果项目id不为空,说明是项目详情中进行查询的,那么按照出发时间正序排序,如果不为空,则是列表页查询的,按照设定的排序规则进行排序
|
|
@@ -112,13 +114,13 @@ public class WebsiteProjectGroupPurchaseController {
|
|
|
return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST);
|
|
|
}
|
|
|
TourProjectGroupPurchaseVo tourProjectGroupPurchaseVo = MyModelUtil.copyTo(tourProjectGroupPurchase, TourProjectGroupPurchaseVo.class);
|
|
|
- // 查询阶梯价格详情以计算当前价格
|
|
|
- TourProjectGroupPurchaseDetail detail = tourProjectGroupPurchaseDetailService.getTourProjectGroupPurchaseDetail(tourProjectGroupPurchase);
|
|
|
- if(detail != null) {
|
|
|
- tourProjectGroupPurchaseVo.setNowPrice(detail.getAdultPrice());
|
|
|
- }else {
|
|
|
- tourProjectGroupPurchaseVo.setNowPrice(tourProjectGroupPurchaseVo.getOriginalPrice());
|
|
|
- }
|
|
|
+// // 查询阶梯价格详情以计算当前价格
|
|
|
+// TourProjectGroupPurchaseDetail detail = tourProjectGroupPurchaseDetailService.getTourProjectGroupPurchaseDetail(tourProjectGroupPurchase);
|
|
|
+// if(detail != null) {
|
|
|
+// tourProjectGroupPurchaseVo.setNowPrice(detail.getAdultPrice());
|
|
|
+// }else {
|
|
|
+// tourProjectGroupPurchaseVo.setNowPrice(tourProjectGroupPurchaseVo.getOriginalPrice());
|
|
|
+// }
|
|
|
return ResponseResult.success(tourProjectGroupPurchaseVo);
|
|
|
}
|
|
|
|