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

@@ -124,6 +124,7 @@ namespace WMS.Web.Api.Controllers
//await _juShuiTanService.GetTest(); //await _juShuiTanService.GetTest();
//string codes = "AD"; //string codes = "AD";
//var b = await _erpInventoryService.GetInventory(codes); //var b = await _erpInventoryService.GetInventory(codes);
int count = 4 / 5;
var bcd=await _productInventoryService.Erp(); var bcd=await _productInventoryService.Erp();
//LingXingResponse<LingXingStockResponse> r = new LingXingResponse<LingXingStockResponse>(); //LingXingResponse<LingXingStockResponse> r = new LingXingResponse<LingXingStockResponse>();

View File

@@ -52,9 +52,14 @@ 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;
foreach (var code in stockCodes) 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>(); List<object> Parameters = new List<object>();
var model = new InventoryParamModel(); var model = new InventoryParamModel();
model.fstocknumbers = code; model.fstocknumbers = code;