This commit is contained in:
18942506660
2024-10-30 11:47:14 +08:00
parent 286fbdb25c
commit c17b75ce44
2 changed files with 8 additions and 2 deletions

View File

@@ -52,9 +52,14 @@ 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);
foreach (var code in stockCodes)
int count = stockCodes.Count() / 5;
count = count + 1;
for (int ic = 1; ic <= count; ic++)
{
var codes = stockCodes.Skip((ic-1) * 5).Take(5).ToList();
string code = string.Join(",", codes);
//foreach (var code in stockCodes)
//{
List<object> Parameters = new List<object>();
var model = new InventoryParamModel();
model.fstocknumbers = code;