From 1bfa37db466f6f08ceab18de171e55055b1ca8bb Mon Sep 17 00:00:00 2001 From: zhangli <1109134334@qq.com> Date: Thu, 5 May 2022 16:32:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=91=E8=80=83=E8=80=81=E5=B8=88=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Exam_InvigilateTeacher/Exam_InvigilateTeacherService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_InvigilateTeacher/Exam_InvigilateTeacherService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_InvigilateTeacher/Exam_InvigilateTeacherService.cs index b480ccb57..36508d456 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_InvigilateTeacher/Exam_InvigilateTeacherService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_InvigilateTeacher/Exam_InvigilateTeacherService.cs @@ -78,8 +78,8 @@ select EPId from Exam_ExamPlanLesson where EPLId='{queryParam["EPLId"].ToString( empSql += $" and EPRId<>'{queryParam["EPRId"].ToString()}'"; } - var obj = this.BaseRepository("CollegeMIS").FindList(empSql).Select(x=>x.EmpNo).Distinct().ToList(); - if (obj != null) + var obj = this.BaseRepository("CollegeMIS").FindList(empSql).Select(x => x.EmpNo).Distinct().ToList(); + if (obj != null && obj.Count > 0) { var empNo = string.Join("','", obj[0].ToString().Split(',').Distinct()); strSql.Append($" AND t.EmpNo not in ('{empNo}')");