|
@@ -67,19 +67,6 @@ public class TourismProjectToWebServiceImpl implements TourismProjectToWebServic
|
|
|
|
|
|
@Override
|
|
|
public MyPageData<TourismProjectVo> list(TourismProjectToWebDto tourismProjectDtoFilter) {
|
|
|
-// if(tourismProjectDtoFilter.getBelongTab() == null){
|
|
|
-// return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST,"所属分类(belongTab)不能为空!");
|
|
|
-// }
|
|
|
- //如果belongTab小于1000并且大于10.则表明查询的是一级菜单
|
|
|
-// if(tourismProjectDtoFilter.getBelongTab() !=null && tourismProjectDtoFilter.getBelongTab()>=10 && tourismProjectDtoFilter.getBelongTab()<1000){
|
|
|
-// DirectoryInfo filter = new DirectoryInfo();
|
|
|
-// filter.setParentId(tourismProjectDtoFilter.getBelongTab());
|
|
|
-// filter.setEnable(1);
|
|
|
-// List<DirectoryInfo> directoryInfoList = tourismProjectService.getDirectoryInfoList(filter, null);
|
|
|
-// tourismProjectDtoFilter.setBelongTab(null);
|
|
|
-// tourismProjectDtoFilter.setDirectoryInfoIds(directoryInfoList.stream().map(DirectoryInfo::getId).collect(toList()));
|
|
|
-// }
|
|
|
-
|
|
|
if(StringUtils.isEmpty(tourismProjectDtoFilter.getAreaId()) && StringUtils.isEmpty(tourismProjectDtoFilter.getCountryId())){
|
|
|
//判断是否为全部的地区
|
|
|
}else if(StringUtils.isNotEmpty(tourismProjectDtoFilter.getAreaId()) && StringUtils.isEmpty(tourismProjectDtoFilter.getCountryId())){
|
|
@@ -151,8 +138,11 @@ public class TourismProjectToWebServiceImpl implements TourismProjectToWebServic
|
|
|
// 匹配团购信息
|
|
|
TourProjectGroupPurchase tourProjectGroupPurchase = collect.get(Long.valueOf(item.getId()));
|
|
|
if(tourProjectGroupPurchase != null) {
|
|
|
+ item.setHasGroup(1);
|
|
|
item.setLowestPrice(tourProjectGroupPurchase.getAdultPrice());
|
|
|
item.setGroupPeopleCount(tourProjectGroupPurchase.getMaxCount());
|
|
|
+ }else {
|
|
|
+ item.setHasGroup(0);
|
|
|
}
|
|
|
});
|
|
|
|
|
@@ -182,6 +172,8 @@ public class TourismProjectToWebServiceImpl implements TourismProjectToWebServic
|
|
|
// 如果有日期列表,则说明有团购,值是1
|
|
|
if(dates != null && dates.size() > 0) {
|
|
|
tourismProjectVo.setHasGroup(1);
|
|
|
+ }else {
|
|
|
+ tourismProjectVo.setHasGroup(0);
|
|
|
}
|
|
|
|
|
|
if(tourismProjectVo != null) {
|