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('&');