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];