修复bug

This commit is contained in:
18942506660
2024-10-18 14:55:15 +08:00
parent 6189bc2912
commit 958578d8a7
2 changed files with 3 additions and 0 deletions

View File

@@ -57,6 +57,7 @@ namespace WMS.Web.Domain.Services
var r = await _basicsRepositories.GetUcStockByHeadOfficeAsync("", 1);
var codes = r.Where(w =>
w.ManagementSystem == 1 || w.ManagementSystem == 4).Select(s => (s.Code, s.ErpOrgCode)).ToList();
if (codes.Count() <= 0) return Result.ReSuccess();
var res = await _erpService.BillQueryForInventory(codes);
if (!res.IsSuccess) return res;
@@ -112,6 +113,7 @@ namespace WMS.Web.Domain.Services
w.ManagementSystem == 2 && !string.IsNullOrEmpty(w.WarehouseCodeOfJushuitan))
.Select(s => s.WarehouseCodeOfJushuitan)
.ToList();
if (listNames.Count() <= 0) return Result.ReSuccess();
//获取领星仓库
var resStock = await _juShuiTanService.GetStock();
if (!resStock.IsSuccess) return resStock;
@@ -186,6 +188,7 @@ namespace WMS.Web.Domain.Services
w.ManagementSystem == 3 && !string.IsNullOrEmpty(w.WarehouseCodeOfLingxing))
.Select(s => s.WarehouseCodeOfLingxing)
.ToList();
if (listNames.Count() <= 0) return Result.ReSuccess();
//获取领星仓库
var resStock = await _lingXingService.GetStock();
if (!resStock.IsSuccess) return resStock;