123
This commit is contained in:
parent
8d0542953e
commit
cd93b84014
@ -505,4 +505,15 @@ namespace MyCode.Project.Infrastructure.JackYun
|
||||
public string logisticNo { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class BusiOrderGoodsDocInResponse2
|
||||
{
|
||||
public List<BusiOrderGoodsDocInResponse> Data { get; set; }
|
||||
/// <summary>
|
||||
/// 上下文编号
|
||||
/// </summary>
|
||||
public string contextId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -315,27 +315,26 @@ namespace MyCode.Project.Services.Implementation
|
||||
if (response.code == "200")
|
||||
{
|
||||
var orderjson = JsonHelper.ToJson(response.result);
|
||||
var list1 = JsonHelper.ToObject<List<BusiOrderGoodsDocInResponse>>(orderjson);
|
||||
var list1 = JsonHelper.ToObject<BusiOrderGoodsDocInResponse2>(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<TradeFullinfogetResp<ReturnChangeData>>(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
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user