添加过滤状态
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user