From 390a2e8eff3c6d68e4f4e47def85aa4f245dac69 Mon Sep 17 00:00:00 2001 From: zhangli <1109134334@qq.com> Date: Mon, 16 Aug 2021 14:31:17 +0800 Subject: [PATCH] =?UTF-8?q?GetSqlData=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LR_Desktop/Controllers/DTListController.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Controllers/DTListController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Controllers/DTListController.cs index 7e1aac7f2..6343a2f70 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Controllers/DTListController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Controllers/DTListController.cs @@ -189,6 +189,17 @@ namespace Learun.Application.Web.Areas.LR_Desktop.Controllers dtListEntity.F_Sql = dtListEntity.F_Sql.Replace("MMM", strSql.ToString()); } + if (dtListEntity.F_Name.Contains("公文接收")) + { + dtListEntity.F_Sql = + "SELECT RFileId as F_Id,Title as f_title,SendTime as f_time FROM dbo.Sys_ReceiveFile WHERE DelFlag=0 AND ReadFlag<>1 and STypeId=4 AND ReceiverId='" + + loginUserInfo.userId + "'"; + } + //金隅学校增加通知新闻已读标志 + if (dtListEntity.F_Url.Contains("/Notice/ViewIndex")) + { + dtListEntity.F_Sql = dtListEntity.F_Sql.Replace("@userId", "'" + loginUserInfo.userId + "'"); + } var reqDataTable = databaseLinkIbll.FindTable(dtListEntity.F_DataSourceId.Trim(), dtListEntity.F_Sql); if (dtListEntity.F_Id == "88f94781-acb8-47ca-864b-f96e3d9b5587") @@ -261,5 +272,7 @@ namespace Learun.Application.Web.Areas.LR_Desktop.Controllers } + + } }