测试
This commit is contained in:
@@ -52,11 +52,11 @@ namespace WMS.Web.Domain.Services.Public
|
||||
var isSuccess = Login(httpClient);
|
||||
string baseUrl = _erpOptions.EndpointAddress.Replace("/ERPGW.asmx", "");
|
||||
httpClient.Url = string.Format("{0}/Kingdee.K3.SCM.WebApi.ServicesStub.InventoryQueryService.GetInventoryData.common.kdsvc", baseUrl);
|
||||
int count = stockCodes.Count() / 5;
|
||||
int count = stockCodes.Count() / 10;
|
||||
count = count + 1;
|
||||
for (int ic = 1; ic <= count; ic++)
|
||||
{
|
||||
var codes = stockCodes.Skip((ic-1) * 5).Take(5).ToList();
|
||||
var codes = stockCodes.Skip((ic-1) * 10).Take(10).ToList();
|
||||
if (codes.Count() <= 0)
|
||||
{
|
||||
return Result<List<ErpInventoryDto>>.ReSuccess(list.Where(w => w.Qty > 0 || w.BeforeQty > 0).ToList());
|
||||
@@ -72,7 +72,7 @@ namespace WMS.Web.Domain.Services.Public
|
||||
model.isshowauxprop = true;
|
||||
model.isshowstockloc = true;
|
||||
model.pageindex = 1;
|
||||
model.pagerows = 10000;
|
||||
model.pagerows = 5000;
|
||||
Parameters.Add(model);
|
||||
|
||||
httpClient.Content = JsonConvert.SerializeObject(Parameters);
|
||||
@@ -89,7 +89,7 @@ namespace WMS.Web.Domain.Services.Public
|
||||
if (datas != null && datas.Count() > 0)
|
||||
list.AddRange(datas);
|
||||
|
||||
int num = Convert.ToInt32(resData["rowcount"]) / 10000;
|
||||
int num = Convert.ToInt32(resData["rowcount"]) / 5000;
|
||||
for (int i = 1; i <= num; i++)
|
||||
{
|
||||
model.pageindex++;
|
||||
|
||||
Reference in New Issue
Block a user