修复bug
This commit is contained in:
@@ -124,7 +124,7 @@ namespace WMS.Web.Api.Controllers
|
||||
//await _juShuiTanService.GetTest();
|
||||
//string codes = "AD";
|
||||
//var b = await _erpInventoryService.GetInventory(codes);
|
||||
int count = 4 / 5;
|
||||
int count = 10 / 5;
|
||||
var bcd=await _productInventoryService.Erp();
|
||||
|
||||
//LingXingResponse<LingXingStockResponse> r = new LingXingResponse<LingXingStockResponse>();
|
||||
|
||||
@@ -57,7 +57,12 @@ namespace WMS.Web.Domain.Services.Public
|
||||
for (int ic = 1; ic <= count; ic++)
|
||||
{
|
||||
var codes = stockCodes.Skip((ic-1) * 5).Take(5).ToList();
|
||||
if (codes.Count() <= 0)
|
||||
{
|
||||
return Result<List<ErpInventoryDto>>.ReSuccess(list.Where(w => w.Qty > 0 || w.BeforeQty > 0).ToList());
|
||||
}
|
||||
string code = string.Join(",", codes);
|
||||
|
||||
//foreach (var code in stockCodes)
|
||||
//{
|
||||
List<object> Parameters = new List<object>();
|
||||
|
||||
Reference in New Issue
Block a user