查询优化

This commit is contained in:
2026-04-23 15:18:39 +08:00
parent 746cb57619
commit c2eeffa0de
16 changed files with 223 additions and 143 deletions
+6 -5
View File
@@ -20,10 +20,10 @@ namespace BLL
set;
}
/// <summary>
/// 定义变量
/// </summary>
private static IQueryable<Model.BS_Steel> qq = from x in Funs.DB.BS_Steel orderby x.STE_Code select x;
///// <summary>
///// 定义变量
///// </summary>
//private static IQueryable<Model.BS_Steel> qq = from x in Funs.DB.BS_Steel orderby x.STE_Code select x;
/// <summary>
/// 获取材质列表
@@ -36,7 +36,8 @@ namespace BLL
/// <returns></returns>
public static IEnumerable GetListData(string searchItem, string searchValue, int startRowIndex, int maximumRows)
{
IQueryable<Model.BS_Steel> q = qq;
Model.SGGLDB db = Funs.DB;
IQueryable<Model.BS_Steel> q = from x in db.BS_Steel orderby x.STE_Code select x;
if (searchItem != "0")
{
if (!string.IsNullOrEmpty(searchValue))