From dfd370a9b03ff6dd061e354d686b4fc24c056da2 Mon Sep 17 00:00:00 2001 From: Frane Date: Fri, 13 Aug 2021 21:10:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E4=BA=BA=E5=91=98=20?= =?UTF-8?q?=E5=8F=82=E4=B8=8E=E9=A1=B9=E7=9B=AE=E5=8A=A0=E5=9C=A8=E5=B2=97?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/BLL/API/APIProjectService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SGGL/BLL/API/APIProjectService.cs b/SGGL/BLL/API/APIProjectService.cs index 73c74f64..1278d21d 100644 --- a/SGGL/BLL/API/APIProjectService.cs +++ b/SGGL/BLL/API/APIProjectService.cs @@ -27,6 +27,7 @@ namespace BLL projects = (from x in db.Project_ProjectUser join y in db.Base_Project on x.ProjectId equals y.ProjectId where x.UserId == userId && (y.ProjectState == null || y.ProjectState == BLL.Const.ProjectState_1) + && (x.IsPost == true || x.IsPost == null) select y).ToList(); } @@ -45,7 +46,7 @@ namespace BLL { var projects = (from x in db.Project_ProjectUser join y in db.Base_Project on x.ProjectId equals y.ProjectId - where x.UserId == userId + where x.UserId == userId && (x.IsPost == true || x.IsPost == null) orderby y.ProjectCode select y).ToList();