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 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")
|
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
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user