测试
This commit is contained in:
@@ -124,6 +124,7 @@ namespace WMS.Web.Api.Controllers
|
||||
//await _juShuiTanService.GetTest();
|
||||
//string codes = "AD";
|
||||
//var b = await _erpInventoryService.GetInventory(codes);
|
||||
int count = 4 / 5;
|
||||
var bcd=await _productInventoryService.Erp();
|
||||
|
||||
//LingXingResponse<LingXingStockResponse> r = new LingXingResponse<LingXingStockResponse>();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user