异常现象
image.png
HotelOtherCancelConfigEntity cancelConfigEntity = collect.get(0);
CancelPenaltyType cancelPenalty = new CancelPenaltyType();
AmountPercentType amountPercent = new RatePlanType.Guarantee.AmountPercent();
amountPercent.setBasisType(cancelConfigEntity.getDeductionType() == 1 ? "FirstLast" : (cancelConfigEntity.getDeductionType() == 2 ? "FullStay" : ""));
cancelPenalty.setAmountPercent(amountPercent);
CancelPenaltyType.Deadline deadline = new CancelPenaltyType.Deadline();
deadline.setOffsetDropTime("BeforeArrival");
deadline.setOffsetTimeUnit(TimeUnitType.HOUR);
Integer hours = calcCancelHours(cancelConfigEntity);
deadline.setOffsetUnitMultiplier(hours);
cancelPenalty.setDeadline(deadline);
cancelPenaltyLst.add(cancelPenalty);
将
AmountPercentType amountPercent = new RatePlanType.Guarantee.AmountPercent();
改为
AmountPercentType amountPercent = new AmountPercentType ();
网友评论