|
|
@@ -195,7 +195,25 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
return this.BaseRepository("CollegeMIS").FindEntity<StuLeaveManagementEntity>(keyValue); |
|
|
|
var data = this.BaseRepository("CollegeMIS").FindEntity<StuLeaveManagementEntity>(keyValue); |
|
|
|
if (data != null) |
|
|
|
{ |
|
|
|
var studentlist = this.BaseRepository("CollegeMIS").FindList<StuInfoBasicEntity>(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<ClassInfoEntity>(x =>x.ClassNo == data.ClassNo).FirstOrDefault(); |
|
|
|
if (classlist!=null) |
|
|
|
{ |
|
|
|
data.ClassDiredctorNo = classlist.ClassDiredctorNo; |
|
|
|
data.ClassTutorNo = classlist.ClassTutorNo; |
|
|
|
} |
|
|
|
} |
|
|
|
return data; |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|