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