From a10dc19018addc2d2e7dedf12ee4f358c525e012 Mon Sep 17 00:00:00 2001 From: ndbs Date: Sat, 26 Nov 2022 15:53:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=20=E5=AD=A6=E7=94=9F?= =?UTF-8?q?=E8=AF=BE=E8=A1=A8=E6=9F=A5=E7=9C=8B=E8=AF=A6=E6=83=85=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StuLeaveManagementService.cs | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuLeaveManagement/StuLeaveManagementService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuLeaveManagement/StuLeaveManagementService.cs index a99a8c387..32e943b50 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuLeaveManagement/StuLeaveManagementService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuLeaveManagement/StuLeaveManagementService.cs @@ -195,7 +195,25 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration { try { - return this.BaseRepository("CollegeMIS").FindEntity(keyValue); + var data = this.BaseRepository("CollegeMIS").FindEntity(keyValue); + if (data != null) + { + var studentlist = this.BaseRepository("CollegeMIS").FindList(x => x.StuNo == data.CreateUserNo).FirstOrDefault(); + if (studentlist != null) + { + data.DeptNo = studentlist.DeptNo; + data.MajorNo = studentlist.MajorNo; + data.ClassNo = studentlist.ClassNo; + data.CreateUserName = studentlist.StuName; + } + var classlist = this.BaseRepository("CollegeMIS").FindList(x =>x.ClassNo == data.ClassNo).FirstOrDefault(); + if (classlist!=null) + { + data.ClassDiredctorNo = classlist.ClassDiredctorNo; + data.ClassTutorNo = classlist.ClassTutorNo; + } + } + return data; } catch (Exception ex) {