添加过滤状态

This commit is contained in:
2026-05-11 14:10:50 +08:00
parent f6b2bdfb81
commit f77e7aaae1
3 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -8,12 +8,12 @@ namespace BLL
public static class APIProjectService
{
#region
public static List<Model.ProjectItem> geProjects()
public static List<Model.ProjectItem> geProjects(string status = "1")
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
return (from x in db.Base_Project
return (from x in db.Base_Project where x.ProjectState == status
select new Model.ProjectItem()
{
ProjectId = x.ProjectId,