This commit is contained in:
余宇波 2025-11-04 11:36:19 +08:00
parent 8d0542953e
commit cd93b84014
2 changed files with 27 additions and 17 deletions

View File

@ -505,4 +505,15 @@ namespace MyCode.Project.Infrastructure.JackYun
public string logisticNo { get; set; } public string logisticNo { get; set; }
} }
public class BusiOrderGoodsDocInResponse2
{
public List<BusiOrderGoodsDocInResponse> Data { get; set; }
/// <summary>
/// 上下文编号
/// </summary>
public string contextId { get; set; }
}
} }

View File

@ -315,27 +315,26 @@ namespace MyCode.Project.Services.Implementation
if (response.code == "200") if (response.code == "200")
{ {
var orderjson = JsonHelper.ToJson(response.result); var orderjson = JsonHelper.ToJson(response.result);
var list1 = JsonHelper.ToObject<List<BusiOrderGoodsDocInResponse>>(orderjson); var list1 = JsonHelper.ToObject<BusiOrderGoodsDocInResponse2>(orderjson);
//int pageIndex = 1; int pageIndex = 1;
//int TotalResults =; string TotalResults = list1.contextId;
//while (requestBizData.PageIndex * requestBizData.PageSize < TotalResults) while (!string.IsNullOrWhiteSpace(TotalResults))
//{ {
// //list1.data.returnChangeList.ForEach(h => h.TradeType = ty); //list1.data.returnChangeList.ForEach(h => h.TradeType = ty);
// trades.AddRange(list1.data); trades.AddRange(list1.Data);
// requestBizData.PageIndex = pageIndex; requestBizData.PageIndex = pageIndex;
// pageIndex++; pageIndex++;
// Thread.Sleep(100); Thread.Sleep(100);
// response = Call(EnumAttribute.GetAttribute(ApiEnum.STORAGEGOODSDOCINCOUNTS).Value, "1.0", requestBizData); response = Call(EnumAttribute.GetAttribute(ApiEnum.STORAGEGOODSDOCINCOUNTS).Value, "1.0", requestBizData);
// if (response.code == "200") if (response.code == "200")
// { {
// orderjson = JsonHelper.ToJson(response.result); orderjson = JsonHelper.ToJson(response.result);
// list1 = JsonHelper.ToObject<TradeFullinfogetResp<ReturnChangeData>>(orderjson);
// } }
//} }
} }
else else
{ {