盘点单接口 报表优化

This commit is contained in:
2024-10-25 17:58:09 +08:00
parent 9fd13a55fc
commit 967055778f
6 changed files with 143 additions and 5 deletions

View File

@@ -198,8 +198,9 @@ namespace Tnb.WarehouseMgr
}
await _db.Ado.BeginTranAsync();
//入库取终点 //出库起点
InStockStrategyQuery inStockStrategyInput = new() { warehouse_id = WmsWareHouseConst.WAREHOUSE_MJC_ID, Size = 1 };
InStockStrategyQuery inStockStrategyInput = new() { warehouse_id = WmsWareHouseConst.WAREHOUSE_MJC_ID, Size = 9999 };
List<BasLocation> endLocations = await _wareHouseService.InStockStrategy(inStockStrategyInput);
endLocations = endLocations.Where(r => r.location_code.Contains("MJWC-C")).ToList();
if (endLocations.Count == 0)
{
throw new AppFriendlyException("没有可用的入库库位", 500);