提交代码

This commit is contained in:
高飞 2023-09-27 17:33:57 +08:00
parent 7108e96152
commit 2e1c911889
1 changed files with 33 additions and 13 deletions

View File

@ -357,10 +357,27 @@ namespace BLL
/// <param name="supTypeId"></param>
/// <param name="checkType">1-checkType;2-专项检查;3-综合检查</param>
/// <returns></returns>
public static List<Model.ResourcesItem> getCheckItemSetListBySupCheckItemId(string supTypeId, string checkType)
public static List<Model.ResourcesItem> getCheckItemSetListBySupCheckItemId(string supTypeId, string checkType,string supName="")
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
if (!string.IsNullOrEmpty(supName))
{
var getDataLists = from x in db.Technique_CheckItemSet
where x.CheckType == checkType && (x.SupCheckItem == supTypeId || (supTypeId == null && x.SupCheckItem == "0"))
&& x.CheckItemName.Contains(supName)
orderby x.SortIndex
select new Model.ResourcesItem
{
ResourcesId = x.CheckItemSetId,
ResourcesCode = x.MapCode,
ResourcesName = x.CheckItemName,
SupResourcesId = x.SupCheckItem,
IsEndLever = x.IsEndLever,
};
return getDataLists.ToList();
}
else {
var getDataLists = from x in db.Technique_CheckItemSet
where x.CheckType == checkType && (x.SupCheckItem == supTypeId || (supTypeId == null && x.SupCheckItem == "0"))
orderby x.SortIndex
@ -374,6 +391,9 @@ namespace BLL
};
return getDataLists.ToList();
}
}
}
/// <summary>