1.修改携程 打车 设置 打车类型数据

This commit is contained in:
wanglf3 2024-03-16 20:10:56 +08:00
parent 2ae8305145
commit 2f702c915f
2 changed files with 9 additions and 6 deletions

View File

@ -139,13 +139,16 @@ public class CTripOrderExtensionFactoryImpl implements OrderExtensionFactory {
carOrderDetail.setFromCity(depAddress.getCityName());
carOrderDetail.setToCity(arrAddress.getCityName());
Driver driver = orderProduct.getDriver();
carOrderDetail.setCarModel(driver.getDriverVehicleName());
}
List<ChoosedVehicle> choosedVehicleList = carQuickOrderInfoEntity.getChoosedVehicleList();
if (!choosedVehicleList.isEmpty()) {
ChoosedVehicle choosedVehicle = choosedVehicleList.get(0);
carOrderDetail.setCarModel(choosedVehicle.getVehicleName());
}
ApproveOrderNo approveOrderNo = routeOrder.getApproveOrderNo();
if (approveOrderNo != null) {

View File

@ -213,7 +213,7 @@ public class CTripTest {
@Test
void search() {
BaseContext.setCurrentUser(user);
SearchOrderResponse response = orderSearchRequest.searchOrderResponseByOrderId("18367772578");
SearchOrderResponse response = orderSearchRequest.searchOrderResponseByOrderId("30352884087");
System.out.println(response);
}