From a7cd7313b07c7bf4c6ed5ad79d15fdf3223d2eee Mon Sep 17 00:00:00 2001 From: bklLiudl <673013083@qq.com> Date: 星期四, 14 三月 2024 16:43:07 +0800 Subject: [PATCH] 功能测试 --- Wms/WMS.BLL/SysServer/StorageLocatServer.cs | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Wms/WMS.BLL/SysServer/StorageLocatServer.cs b/Wms/WMS.BLL/SysServer/StorageLocatServer.cs index f722153..d968e79 100644 --- a/Wms/WMS.BLL/SysServer/StorageLocatServer.cs +++ b/Wms/WMS.BLL/SysServer/StorageLocatServer.cs @@ -635,7 +635,12 @@ { try { - string str = "select RoadwayNo,RoadwayName,WareHouseNo from SysStorageRoadway where IsDel = @isdel and WareHouseNo = @warehouseno"; + string str = "select RoadwayNo,RoadwayName,WareHouseNo from SysStorageRoadway where IsDel = @isdel"; + + if (!string.IsNullOrWhiteSpace(wareHouseNo)) + { + str += " and WareHouseNo = @warehouseno"; + } List<RoadwayDto> roadway = Db.Ado.SqlQuery<RoadwayDto>(str, new { @@ -696,7 +701,8 @@ else if (storageLocat.Status == "2") { //鎵樼洏缁戝畾淇℃伅 - List<BllPalletBind> palletBindList = Db.Queryable<BllPalletBind>().Where(w => w.LocatNo == locatNo && w.IsDel == "0").ToList(); + List<BllPalletBind> palletBindList = Db.Queryable<BllPalletBind>() + .Where(w => w.LocatNo == locatNo && w.IsDel == "0" && w.Status == "1").ToList(); if (palletBindList == null || palletBindList.Count <= 0) { throw new Exception("鏈壘鍒板搴旂殑鎵樼洏缁戝畾淇℃伅"); -- Gitblit v1.8.0