1.处理携程 打车数据车型和 新费用数据
This commit is contained in:
parent
2f702c915f
commit
e10e0632c3
|
@ -104,18 +104,19 @@ public class CTripOrderExtensionFactoryImpl implements OrderExtensionFactory {
|
|||
carOrderDetail.setOrderAmount(String.valueOf(carBasicInfo.getOrderAmount()));
|
||||
|
||||
|
||||
|
||||
if (carBasicInfo.getPaymentType().equals("ACCNT")){
|
||||
carOrderDetail.setPaymentType("0");
|
||||
} else {
|
||||
carOrderDetail.setPaymentType("1");
|
||||
|
||||
}
|
||||
carOrderDetail.setCompanyPaymentAmount(String.valueOf(carBasicInfo.getPersonAmount()));
|
||||
|
||||
carOrderDetail.setPersonalPaymentAmount(String.valueOf(carBasicInfo.getAccntAmount()));
|
||||
if (!carQuickOrderInfoEntity.getOrderFeeList().isEmpty()) {
|
||||
OrderFee orderFee = carQuickOrderInfoEntity.getOrderFeeList().get(0);
|
||||
|
||||
String paymentType = carOrderDetail.getPaymentType();
|
||||
if (paymentType != null && paymentType.equals("ACCNT")) {
|
||||
carOrderDetail.setPaymentType("0");
|
||||
} else {
|
||||
carOrderDetail.setPaymentType("1");
|
||||
}
|
||||
carOrderDetail.setPersonalPaymentAmount(String.valueOf(orderFee.getAccntAmount()));
|
||||
carOrderDetail.setCompanyPaymentAmount(String.valueOf(orderFee.getPersonAmount()));
|
||||
|
||||
|
||||
if (orderFee.getFeeName().equals("取消费")) {
|
||||
carOrderDetail.setCancellationFee(orderFee.getAmount().toString());
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue