20240115-ljl-multiPay
ljl 1 year ago
parent 453c79a629
commit c337ae9be3

@ -105,7 +105,7 @@
<artifactId>sdk-java</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>system</scope>
<systemPath>${project.basedir}/../lib/doudian-sdk-java-1.1.0-20231106182138.jar</systemPath>
<systemPath>${project.basedir}/../lib/doudian-sdk-java-1.1.0-20231115180910.jar</systemPath>
</dependency>
</dependencies>

@ -22,6 +22,10 @@ import com.doudian.open.api.supplyCenter_order_pay.SupplyCenterOrderPayRequest;
import com.doudian.open.api.supplyCenter_order_pay.SupplyCenterOrderPayResponse;
import com.doudian.open.api.supplyCenter_order_pay.data.SupplyCenterOrderPayData;
import com.doudian.open.api.supplyCenter_order_pay.param.SupplyCenterOrderPayParam;
import com.doudian.open.api.supplyCenter_order_query.SupplyCenterOrderQueryRequest;
import com.doudian.open.api.supplyCenter_order_query.SupplyCenterOrderQueryResponse;
import com.doudian.open.api.supplyCenter_order_query.data.SupplyCenterOrderQueryData;
import com.doudian.open.api.supplyCenter_order_query.param.SupplyCenterOrderQueryParam;
import com.doudian.open.api.supplyCenter_order_syncSupplierInfo.SupplyCenterOrderSyncSupplierInfoRequest;
import com.doudian.open.api.supplyCenter_order_syncSupplierInfo.SupplyCenterOrderSyncSupplierInfoResponse;
import com.doudian.open.api.supplyCenter_order_syncSupplierInfo.data.SupplyCenterOrderSyncSupplierInfoData;
@ -125,6 +129,18 @@ public class DDApi {
throw new RuntimeException(String.format("抖店请求错误:msg:%s,code:%s,subCode:%s,subMsg:%s,", response.getMsg(), response.getCode(), response.getSubCode(), response.getSubMsg()));
}
public static SupplyCenterOrderQueryData supplyCenterOrderQuery(SupplyCenterOrderQueryParam param) {
log.info("DdApi:{}", "supplyCenterOrderQuery");
SupplyCenterOrderQueryRequest request = new SupplyCenterOrderQueryRequest();
request.setParam(param);
SupplyCenterOrderQueryResponse response = execute(request);
boolean success = CommonTool.checkDdApiRequestIsSuccess(response);
if (success && ObjectUtil.isNotEmpty(response.getData())) {
return response.getData();
}
throw new RuntimeException(String.format("抖店请求错误:msg:%s,code:%s,subCode:%s,subMsg:%s,", response.getMsg(), response.getCode(), response.getSubCode(), response.getSubMsg()));
}
private static <T, R> T execute(DoudianOpRequest<R> request) {
GlobalConfig.getGlobalConfig().addHttpRequestHeader("X-USE-BOE", "1");
GlobalConfig.getGlobalConfig().addHttpRequestHeader("Origin-From", "djt_prod");

Loading…
Cancel
Save