This commit is contained in:
18942506660
2024-10-30 13:35:09 +08:00
parent 389bca19f5
commit 6f0ebbb55e

View File

@@ -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());