From 826be60f29abfd69e2a5174c1ddfcb70ab6efefd Mon Sep 17 00:00:00 2001 From: "ruoxing.wang" <88384874@qq.com> Date: Wed, 11 Dec 2024 15:36:38 +0800 Subject: [PATCH] 1 --- MESClassLibrary/DAL/BasicInfo/BarCodeDAl.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MESClassLibrary/DAL/BasicInfo/BarCodeDAl.cs b/MESClassLibrary/DAL/BasicInfo/BarCodeDAl.cs index a4d2674..12a9095 100644 --- a/MESClassLibrary/DAL/BasicInfo/BarCodeDAl.cs +++ b/MESClassLibrary/DAL/BasicInfo/BarCodeDAl.cs @@ -496,7 +496,7 @@ namespace MESClassLibrary.DAL.BasicInfo dbo.tb_InjectPlanReport ON dbo.v_Code.PlanID = dbo.tb_InjectPlanReport.InjectionPlanID LEFT OUTER JOIN dbo.tb_Product ON dbo.v_Code.StockNo = dbo.tb_Product.StockNo LEFT OUTER JOIN dbo.tb_Station ON dbo.v_Code.StationID = dbo.tb_Station.StationID - WHERE (dbo.v_Code.IsDel = 0) and IsNull(v_Code.BoxNo,'')!='' + WHERE (dbo.v_Code.IsDel = 0) ORDER BY dbo.v_Code.CreateTime DESC"; return SqlHelper.ExecuteDataset(SqlHelper.GetConnSting(), CommandType.Text, sql, null).Tables[0]; @@ -521,7 +521,7 @@ namespace MESClassLibrary.DAL.BasicInfo dbo.tb_InjectPlanReport ON dbo.v_Code.PlanID = dbo.tb_InjectPlanReport.InjectionPlanID LEFT OUTER JOIN dbo.tb_Product ON dbo.v_Code.StockNo = dbo.tb_Product.StockNo LEFT OUTER JOIN dbo.tb_Station ON dbo.v_Code.StationID = dbo.tb_Station.StationID - WHERE dbo.v_Code.IsDel = 0 and dbo.v_Code.OneBarCode=@OneBarCode and IsNull( BoxNo ,'')!='' + WHERE dbo.v_Code.IsDel = 0 and dbo.v_Code.OneBarCode=@OneBarCode ORDER BY dbo.v_Code.CreateTime DESC"; SqlParameter[] param = new SqlParameter[1];