From cd93b840143f7291bdc0c89bb177b8017999dc74 Mon Sep 17 00:00:00 2001 From: yuyubo <1870149533@qq.com> Date: Tue, 4 Nov 2025 11:36:19 +0800 Subject: [PATCH] 123 --- .../JackYun/BusiOrderGoodsDocInResponse.cs | 11 +++++++ .../Implementation/JackYunService.cs | 33 +++++++++---------- 2 files changed, 27 insertions(+), 17 deletions(-) diff --git a/Reportapi/MyCode.Project.Infrastructure/JackYun/BusiOrderGoodsDocInResponse.cs b/Reportapi/MyCode.Project.Infrastructure/JackYun/BusiOrderGoodsDocInResponse.cs index c7c38a7..d9d64bf 100644 --- a/Reportapi/MyCode.Project.Infrastructure/JackYun/BusiOrderGoodsDocInResponse.cs +++ b/Reportapi/MyCode.Project.Infrastructure/JackYun/BusiOrderGoodsDocInResponse.cs @@ -505,4 +505,15 @@ namespace MyCode.Project.Infrastructure.JackYun public string logisticNo { get; set; } } + + + public class BusiOrderGoodsDocInResponse2 + { + public List Data { get; set; } + /// + /// 上下文编号 + /// + public string contextId { get; set; } + + } } diff --git a/Reportapi/MyCode.Project.Services/Implementation/JackYunService.cs b/Reportapi/MyCode.Project.Services/Implementation/JackYunService.cs index 6a7773f..30bc41d 100644 --- a/Reportapi/MyCode.Project.Services/Implementation/JackYunService.cs +++ b/Reportapi/MyCode.Project.Services/Implementation/JackYunService.cs @@ -315,27 +315,26 @@ namespace MyCode.Project.Services.Implementation if (response.code == "200") { var orderjson = JsonHelper.ToJson(response.result); - var list1 = JsonHelper.ToObject>(orderjson); + var list1 = JsonHelper.ToObject(orderjson); - //int pageIndex = 1; - //int TotalResults =; - //while (requestBizData.PageIndex * requestBizData.PageSize < TotalResults) - //{ - // //list1.data.returnChangeList.ForEach(h => h.TradeType = ty); + int pageIndex = 1; + string TotalResults = list1.contextId; + while (!string.IsNullOrWhiteSpace(TotalResults)) + { + //list1.data.returnChangeList.ForEach(h => h.TradeType = ty); - // trades.AddRange(list1.data); - // requestBizData.PageIndex = pageIndex; - // pageIndex++; - // Thread.Sleep(100); - // response = Call(EnumAttribute.GetAttribute(ApiEnum.STORAGEGOODSDOCINCOUNTS).Value, "1.0", requestBizData); - // if (response.code == "200") - // { - // orderjson = JsonHelper.ToJson(response.result); - // list1 = JsonHelper.ToObject>(orderjson); + trades.AddRange(list1.Data); + requestBizData.PageIndex = pageIndex; + pageIndex++; + Thread.Sleep(100); + response = Call(EnumAttribute.GetAttribute(ApiEnum.STORAGEGOODSDOCINCOUNTS).Value, "1.0", requestBizData); + if (response.code == "200") + { + orderjson = JsonHelper.ToJson(response.result); - // } - //} + } + } } else {