diff --git a/lib/doudian-sdk-java-1.1.0-20231115180910.jar b/lib/doudian-sdk-java-1.1.0-20231115180910.jar new file mode 100644 index 0000000..bfe164a Binary files /dev/null and b/lib/doudian-sdk-java-1.1.0-20231115180910.jar differ diff --git a/ms-biz/pom.xml b/ms-biz/pom.xml index e71a961..db123be 100644 --- a/ms-biz/pom.xml +++ b/ms-biz/pom.xml @@ -105,7 +105,7 @@ sdk-java 1.0-SNAPSHOT system - ${project.basedir}/../lib/doudian-sdk-java-1.1.0-20231106182138.jar + ${project.basedir}/../lib/doudian-sdk-java-1.1.0-20231115180910.jar diff --git a/ms-biz/src/main/java/com/ms/biz/util/DDApi.java b/ms-biz/src/main/java/com/ms/biz/util/DDApi.java index 1671060..9b41939 100644 --- a/ms-biz/src/main/java/com/ms/biz/util/DDApi.java +++ b/ms-biz/src/main/java/com/ms/biz/util/DDApi.java @@ -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 execute(DoudianOpRequest request) { GlobalConfig.getGlobalConfig().addHttpRequestHeader("X-USE-BOE", "1"); GlobalConfig.getGlobalConfig().addHttpRequestHeader("Origin-From", "djt_prod");