1.修改同程飞机 支付方式改为0 为公司支付

This commit is contained in:
wanglf3 2024-03-16 14:59:39 +08:00
parent 11d7dd053a
commit a8c18e89ec
4 changed files with 13 additions and 6 deletions

View File

@ -160,7 +160,9 @@ public class LYOrderExtensionFactoryImpl implements OrderExtensionFactory {
flightOrderDetail.setPostServiceFee(orderDetails.getAfterSettlementServicePrice().toString());
flightOrderDetail.setCompanyPaymentAmount(orderDetails.getTotalPrice().toString());
flightOrderDetail.setNotBookedLowestPriceReason(orderDetails.getFoulReason());
flightOrderDetail.setPaymentType(orderDetails.getPayType().toString()); //贵司都是公司支付所以为0
// flightOrderDetail.setPaymentType(orderDetails.getPayType().toString()); //贵司都是公司支付所以为0
flightOrderDetail.setPaymentType("0");
}
if (flightSegment != null) {
flightOrderDetail.setEndAirportName(flightSegment.getArriveAirport());

View File

@ -5,7 +5,7 @@ import com.authine.cloudpivot.opensdk.ApiException;
import com.authine.cloudpivot.opensdk.CloudpivotOpenClient;
import com.authine.cloudpivot.opensdk.model.request.workflow.StartWorkflowRequest;
import com.authine.cloudpivot.opensdk.model.response.workflow.StartWorkflowResponse;
import com.chint.dama.dc.basic.Result;
//import com.chint.dama.dc.basic.Result;
import com.chint.domain.aggregates.user.User;
import com.chint.infrastructure.util.BaseContext;
import com.chint.interfaces.rest.base.PostRequest;

View File

@ -204,10 +204,9 @@ public class CTripTest {
// @Test
void search() {
BaseContext.setCurrentUser(user);
SearchOrderResponse response = orderSearchRequest.searchOrderResponseByOrderId("29882203254");
SearchOrderResponse response = orderSearchRequest.searchOrderResponseByOrderId("31024617012");
System.out.println(response);
}
// @Test

View File

@ -24,6 +24,7 @@ import com.chint.interfaces.rest.ly.dto.applyordersync.*;
import com.chint.interfaces.rest.ly.dto.commonresult.Result;
import com.chint.interfaces.rest.ly.dto.estimateprice.*;
import com.chint.interfaces.rest.ly.dto.search.response.filght.FlightOrderResponse;
import com.chint.interfaces.rest.ly.dto.search.response.hotel.HotelDetailResponse;
import com.chint.interfaces.rest.ly.dto.search.response.train.TrainDetailResponse;
import com.chint.interfaces.rest.ly.vo.estimateprice.TrainPriceVo;
import com.google.gson.Gson;
@ -789,13 +790,18 @@ public class LYTest {
@Test
void search(){
FlightOrderResponse t1 = lySearchRequest
.getFlightOrderDetail("DFR24031466691835702");
.getFlightOrderDetail("DF24031466751565416");
Gson gson = new Gson();
String json = gson.toJson(t1);
System.out.println(json);
// TrainDetailResponse trainDetailResponse = lySearchRequest.getTrainOrderDetail("DFR24031466691835702");
// TrainDetailResponse trainDetailResponse = lySearchRequest.getTrainOrderDetail("DT24031466762140980");
// Gson gson = new Gson();
// String json = gson.toJson(trainDetailResponse);
// System.out.println(json);
// HotelDetailResponse trainDetailResponse = lySearchRequest.getHotelOrderDetail("HO20240302193400479205");
// Gson gson = new Gson();
// String json = gson.toJson(trainDetailResponse);
// System.out.println(json);