From ce85886d88526aa7362679e18d1a8aec7154daed Mon Sep 17 00:00:00 2001 From: ndbs Date: Tue, 31 Dec 2024 15:26:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=9A=E5=8A=9E=E6=94=B6=E6=96=87=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E5=8E=BB=E6=8E=89=E5=8F=91=E8=B5=B7=E4=BA=BA=20?= =?UTF-8?q?=E5=92=8C=E6=9C=80=E5=90=8E=E4=B8=80=E4=B8=AA=E4=BA=BA=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/DispatchController.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/DispatchController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/DispatchController.cs index 3e44cb240..731f371b8 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/DispatchController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/DispatchController.cs @@ -294,6 +294,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers { dispatchEntity.Render = firstList[i].F_Des; ViewBag.pSList += firstList[i].F_CreateUserName + firstList[i].F_CreateDate + "阅" + "&"; + break; } } var PrintList = nWFTaskIBLL.GetLogList(dispatchEntity.processId).GroupBy(o => o.F_CreateUserName).Select(o => new @@ -304,9 +305,12 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers var newList = PrintList.Where(s => PrintList.Select(mo => mo.F_CreateDate).Contains(s.F_CreateDate)).OrderBy(s => s.F_CreateDate).ToList(); for (int i = 1; i < newList.Count; i++) { - if (!ViewBag.pSList.Contains(newList[i].F_CreateUserName)) + if (i != 1 && i != newList.Count) { - ViewBag.pSList += newList[i].F_CreateUserName + newList[i].F_CreateDate + "阅" + "&"; + if (!ViewBag.pSList.Contains(newList[i].F_CreateUserName)) + { + ViewBag.pSList += newList[i].F_CreateUserName + newList[i].F_CreateDate + "阅" + "&"; + } } } ViewBag.pSList = ViewBag.pSList.TrimEnd('&');