|
@@ -7,6 +7,7 @@ import com.tourism.common.additional.config.ApplicationConfig;
|
|
|
import com.tourism.common.additional.utils.MapConvertUtils;
|
|
|
import com.tourism.common.additional.utils.StringUtils;
|
|
|
import com.tourism.common.additional.utils.UrlConvertUtils;
|
|
|
+import com.tourism.common.core.annotation.MyRequestBody;
|
|
|
import com.tourism.common.core.constant.ErrorCodeEnum;
|
|
|
import com.tourism.common.core.object.*;
|
|
|
import com.tourism.common.core.upload.BaseUpDownloader;
|
|
@@ -193,7 +194,7 @@ public class TourismProjectToWebServiceImpl implements TourismProjectToWebServic
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void bookProject(HttpServletRequest request, TourismBookProjectDto tourismBookProjectDto) {
|
|
|
+ public void bookProject(HttpServletRequest request,@MyRequestBody TourismBookProjectDto tourismBookProjectDto) {
|
|
|
//获取用户的手机号
|
|
|
Long userId = TokenData.takeFromRequest().getUserId();
|
|
|
TourUser tourUser = tourUserService.getById(userId);
|
|
@@ -216,6 +217,7 @@ public class TourismProjectToWebServiceImpl implements TourismProjectToWebServic
|
|
|
tourBookInfo.setChildrenPrice(tourismDatePriceOne.getChildrenPrice());
|
|
|
tourBookInfo.setBookMobile(mobile);
|
|
|
tourBookInfo.setBookName(mobile);
|
|
|
+ tourBookInfo.setIsHandle("0");
|
|
|
tourBookInfo.setBookTime(tourismBookProjectDto.getStartDate());
|
|
|
tourBookInfo.setTotalPrice( tourismDatePriceOne.getAdultPrice().multiply(BigDecimal.valueOf(tourismBookProjectDto.getAdultNumber()))
|
|
|
.add(tourismDatePriceOne.getChildrenPrice().multiply(BigDecimal.valueOf(tourismBookProjectDto.getChildrenNumber()))));
|