From 2de8167003e669d0577d274c3d910a6559398d0d Mon Sep 17 00:00:00 2001 From: shanj <18996038927@163.com> Date: Thu, 16 Mar 2023 23:32:47 +0800 Subject: [PATCH] 1 --- BBWY.Server.Business/PlatformSDK/JDBusiness.cs | 4 ++-- BBWY.Test/Program.cs | 8 ++++++++ JD.API/Controllers/PlatformSDKController.cs | 15 +++++++++++++-- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs index fc7ff8c6..2a90f0af 100644 --- a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs +++ b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs @@ -1368,8 +1368,8 @@ namespace BBWY.Server.Business //req.freightUpdateDateBegin = ; //req.freightUpdateDateEnd = ; - req.pageNumber = "1"; - req.pageSize = "100"; + req.pageNumber = request.PageIndex.ToString(); + req.pageSize = request.PageSize.ToString(); var res = jdClient.Execute(req, request.AppToken, DateTime.Now.ToLocalTime()); if (res.IsError) throw new BusinessException($"查询服务单失败-{(string.IsNullOrEmpty(res.ErrorMsg) ? res.ErrMsg : res.ErrorMsg)}"); diff --git a/BBWY.Test/Program.cs b/BBWY.Test/Program.cs index 10d10f25..8b1ea85b 100644 --- a/BBWY.Test/Program.cs +++ b/BBWY.Test/Program.cs @@ -73,6 +73,8 @@ namespace BBWY.Test //req.orderStatusCategory = "1"; //var res = jdClient.Execute(req, token, DateTime.Now.ToLocalTime()); + + /* var req = new AscSyncListRequest(); req.buId = "10598776"; @@ -92,7 +94,13 @@ namespace BBWY.Test req.pageNumber = "1"; req.pageSize = "100"; var res = jdClient.Execute(req, token, DateTime.Now.ToLocalTime()); + */ + + var req = new PopOrderEnGetRequest(); + req.optionalFields = "orderId,venderId,orderType,payType,orderTotalPrice,orderSellerPrice,orderPayment,freightPrice,orderState,orderStateRemark,orderRemark,orderStartTime,orderEndTime,modified,consigneeInfo,itemInfoList,couponDetailList,taxFee,venderRemark,pin,waybill,storeOrder,storeId,sellerDiscount"; + req.orderId = "261814087672"; + var res = jdClient.Execute(req, token, DateTime.Now.ToLocalTime()); Console.WriteLine(JsonConvert.SerializeObject(res)); diff --git a/JD.API/Controllers/PlatformSDKController.cs b/JD.API/Controllers/PlatformSDKController.cs index 29f978c5..1aad4bb0 100644 --- a/JD.API/Controllers/PlatformSDKController.cs +++ b/JD.API/Controllers/PlatformSDKController.cs @@ -288,9 +288,9 @@ namespace JD.API.API.Controllers return platformSDKBusinessList.FirstOrDefault(p => p.Platform == request.Platform).StartJDPromotionTask(request); } - public void StartJDPromotionDelayTask([FromBody]StartPromotionTaskDelayRequest request) + public void StartJDPromotionDelayTask([FromBody] StartPromotionTaskDelayRequest request) { - platformSDKBusinessList.FirstOrDefault(p => p.Platform == request.Platform).StartJDPromotionDelayTask(request); + platformSDKBusinessList.FirstOrDefault(p => p.Platform == request.Platform).StartJDPromotionDelayTask(request); } /// @@ -333,5 +333,16 @@ namespace JD.API.API.Controllers { return platformSDKBusinessList.FirstOrDefault(p => p.Platform == request.Platform).GetServiceGroupList(request); } + + /// + /// 增量同步服务单(新) + /// + /// + /// + [HttpPost] + public JArray GetServiceOrderList([FromBody]QueryServiceOrderRequest request) + { + return platformSDKBusinessList.FirstOrDefault(p => p.Platform == request.Platform).GetServiceOrderList(request); + } } }