From f60fd2335fc29d3fe62674d667f0c4860f2220d9 Mon Sep 17 00:00:00 2001 From: edy Date: Mon, 5 Jul 2021 11:21:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/DispatchController.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 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 18d29bb01..08656e5e6 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 @@ -228,19 +228,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers //获取校长的签名盖章 批示+时间+阅 var listTaskLog = nWFTaskIBLL.GetLogList(dispatchEntity.processId); - var nwfTaskLogEntity = listTaskLog.FirstOrDefault(a => a.F_TaskUserName == "超级管理员"); - var PrintList = nWFTaskIBLL.GetLogList(dispatchEntity.processId).OrderByDescending(o => o.F_Id).ToList(); + var PrintList = nWFTaskIBLL.GetLogList(dispatchEntity.processId).OrderBy(o => o.F_CreateDate).ToList(); if (listTaskLog.Count() > 0) { - for (int i = 1; i < PrintList.Count; i++) + for (int i = 0; i < PrintList.Count; i++) { if (i == 1) { dispatchEntity.Render = PrintList[i].F_Des; - ViewBag.StampImg = nwfTaskLogEntity.F_StampImg; - ViewBag.SignImg = nwfTaskLogEntity.F_SignImg; + ViewBag.StampImg = PrintList[i].F_StampImg; + ViewBag.SignImg = PrintList[i].F_SignImg; } - dispatchEntity.Listarray += PrintList[i].F_CreateUserName + PrintList[i].F_CreateDate + "阅" + "&"; } dispatchEntity.Listarray = dispatchEntity.Listarray.TrimEnd('&');