修复bug

This commit is contained in:
18942506660
2024-10-30 11:56:56 +08:00
parent c17b75ce44
commit 389bca19f5
2 changed files with 6 additions and 1 deletions

View File

@@ -124,7 +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; int count = 10 / 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

@@ -57,7 +57,12 @@ namespace WMS.Web.Domain.Services.Public
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) * 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); string code = string.Join(",", codes);
//foreach (var code in stockCodes) //foreach (var code in stockCodes)
//{ //{
List<object> Parameters = new List<object>(); List<object> Parameters = new List<object>();