1.火车坐位类型数据转换
This commit is contained in:
parent
939e3c0bb7
commit
2bc25d354e
|
@ -442,7 +442,29 @@ public class LYOrderExtensionFactoryImpl implements OrderExtensionFactory {
|
|||
trainOrderDetail.setPreServiceFee(String.valueOf(item.getServiceCharge()));
|
||||
trainOrderDetail.setPostServiceFee(String.valueOf(item.getAfterServiceCharge()));
|
||||
trainOrderDetail.setRefundAmount(String.valueOf(item.getRefundAmountCor()));
|
||||
trainOrderDetail.setSeatType(item.getSeatClass());
|
||||
|
||||
|
||||
|
||||
if (item.getSeatClass().equals("secondseat")){
|
||||
trainOrderDetail.setSeatType("二等座");
|
||||
}
|
||||
if (item.getSeatClass().equals("businessseat")){
|
||||
trainOrderDetail.setSeatType("商务座");
|
||||
}
|
||||
if (item.getSeatClass().equals("hardseat")){
|
||||
trainOrderDetail.setSeatType("硬座");
|
||||
}
|
||||
if (item.getSeatClass().equals("softsleeperup")){
|
||||
trainOrderDetail.setSeatType("软卧");
|
||||
}
|
||||
if (item.getSeatClass().equals("hardsleeperup")){
|
||||
trainOrderDetail.setSeatType("硬卧");
|
||||
}
|
||||
if (item.getSeatClass().equals("firstseat")){
|
||||
trainOrderDetail.setSeatType("一等座");
|
||||
}
|
||||
|
||||
|
||||
trainOrderDetail.setSeatName(item.getSeatNo());
|
||||
trainOrderDetail.setTicketPrice(String.valueOf(item.getTicketPrice()));
|
||||
trainOrderDetail.setRefundCost(String.valueOf(item.getRefundFee()));
|
||||
|
|
Loading…
Reference in New Issue