From ff62dea1c6a1369870e627b62aaae0a2c1d13c5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E7=BE=8E=E8=8D=A3?= <10755671+mei-rong-he@user.noreply.gitee.com> Date: Sun, 24 May 2026 01:29:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E7=9F=A5=E9=81=93=E5=95=A5=E6=97=B6?= =?UTF-8?q?=E5=80=99=E7=9A=84=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=8A=A5=E9=94=99=EF=BC=8C=E5=85=88=E5=8E=BB=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../APT.FO.WebApi/Controllers/CurrentClassRecord.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/APT.MicroApi/APT.FO.WebApi/Controllers/CurrentClassRecord.cs b/APT.MicroApi/APT.FO.WebApi/Controllers/CurrentClassRecord.cs index f58f288..dfed288 100644 --- a/APT.MicroApi/APT.FO.WebApi/Controllers/CurrentClassRecord.cs +++ b/APT.MicroApi/APT.FO.WebApi/Controllers/CurrentClassRecord.cs @@ -201,11 +201,11 @@ namespace APT.FO.WebApi.Controllers.Api.FO { var currCalendarID = currCalendar.CALENDAR_ID; var currDepartmentConfig = GetEntity(t => t.TEAM_ID == entity.CLASS_TEAM_ID && t.IS_DELETED == false, "Nav_DepartmentCalendarConfig"); - if (currDepartmentConfig.Nav_DepartmentCalendarConfig == null) + if (currDepartmentConfig==null || currDepartmentConfig.Nav_DepartmentCalendarConfig == null) { - throw new Exception("未找到排班数据!"); + //throw new Exception("未找到排班数据!"); } - if (currDepartmentConfig.Nav_DepartmentCalendarConfig.IS_HANDOVER == true) + if (currDepartmentConfig != null && currDepartmentConfig.Nav_DepartmentCalendarConfig != null&& currDepartmentConfig.Nav_DepartmentCalendarConfig.IS_HANDOVER == true) { var searchFilter = new BaseFilter(entity.ORG_ID); searchFilter.SelectField = new string[] { "TEAM_ID", "PERSON_ID", "Nav_Person.Nav_Post", "Nav_Person.Nav_User", "Nav_DepartmentScheduling" };