|
@@ -240,9 +240,16 @@ public class AppBookImplService implements AppBookService {
|
|
|
// 生成订单时,写入数据操作
|
|
// 生成订单时,写入数据操作
|
|
|
bookinglogService.addBooklog(OrderEnum.生成订单.toString(), booking);
|
|
bookinglogService.addBooklog(OrderEnum.生成订单.toString(), booking);
|
|
|
|
|
|
|
|
- if (i == 0)
|
|
|
|
|
- return ResultStatusCode.CANNTBOOKING.CANNTBOOKING.getMsg();
|
|
|
|
|
|
|
+ if (i == 0) {
|
|
|
|
|
+// 返还优惠券
|
|
|
|
|
+ HotelCouponStatus hotelCouponStatus = hotelCoupomStatusService.getById(useId);
|
|
|
|
|
+ hotelCouponStatus.setStatus(1);
|
|
|
|
|
+ hotelCouponStatus.setBookingId(null);
|
|
|
|
|
+ hotelCouponStatus.setDiscountAmount(null);
|
|
|
|
|
+ hotelCoupomStatusService.update(hotelCouponStatus);
|
|
|
|
|
|
|
|
|
|
+ return ResultStatusCode.CANNTBOOKING.CANNTBOOKING.getMsg();
|
|
|
|
|
+ }
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
|
|
|