From 7116e4eff45861805531cc1d11be46cbecc7b17e 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: Mon, 25 May 2026 17:35:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/Api/HiddenDangerRectifyRecordController.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/APT.MicroApi/APT.SK.WebApi/Controllers/Api/HiddenDangerRectifyRecordController.cs b/APT.MicroApi/APT.SK.WebApi/Controllers/Api/HiddenDangerRectifyRecordController.cs index f96bea4..c23370b 100644 --- a/APT.MicroApi/APT.SK.WebApi/Controllers/Api/HiddenDangerRectifyRecordController.cs +++ b/APT.MicroApi/APT.SK.WebApi/Controllers/Api/HiddenDangerRectifyRecordController.cs @@ -665,6 +665,10 @@ namespace APT.SK.WebApi.Controllers this.ThrowError("030017"); pageFilter.IgnoreDataRule = true; var entity = this.GetEntity(id); + if (entity == null) + { + throw new Exception("请在弹窗页重新选择公司"); + } FilterRule ruleArea = new FilterRule(); ruleArea.Field = "RISK_AREA_ID"; ruleArea.Value = entity.RISK_AREA_ID;