1125-gaofei-首页只显示未关闭的关键事项数据

This commit is contained in:
gaofei 2021-11-25 13:15:13 +08:00
parent 77a1316da5
commit 2829654a33
2 changed files with 3 additions and 3 deletions

View File

@ -432,7 +432,7 @@ namespace FineUIPro.Web.common
{
var getGJSX = (from x in Funs.DB.GJSX
join y in Funs.DB.Base_QuestionType on x.QuestionTypeID equals y.QuestionTypeID
where (y.QuestionTypeName.Contains("紧急") || y.QuestionTypeName.Contains("重要"))
where (y.QuestionTypeName.Contains("紧急") || y.QuestionTypeName.Contains("重要")) && x.State != "0"
orderby x.CreateDate
select new { x.GJSXID, x.Detail, x.CreateDate, x.ProjectId, y.QuestionTypeName }).Distinct().Take(20);
string strNoticeHtml = string.Empty;

View File

@ -248,7 +248,7 @@ namespace FineUIPro.Web.common
{
var getGJSX = (from x in Funs.DB.GJSX
join y in Funs.DB.Base_QuestionType on x.QuestionTypeID equals y.QuestionTypeID
where x.ProjectId == this.CurrUser.LoginProjectId
where x.ProjectId == this.CurrUser.LoginProjectId && x.State != "0"
orderby x.CreateDate
select new { x.GJSXID, x.Detail, x.CreateDate, x.ProjectId, y.QuestionTypeName }).Distinct().Take(20);
string strNoticeHtml = string.Empty;