From 992d3b535ac150762f00d271e49430f3b3c1ff76 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: Wed, 26 Nov 2025 18:06:12 +0800 Subject: [PATCH] 1 --- .../APT.FO.WebApi/Controllers/FireJobController.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/APT.MicroApi/APT.FO.WebApi/Controllers/FireJobController.cs b/APT.MicroApi/APT.FO.WebApi/Controllers/FireJobController.cs index f8186a6..5816e4b 100644 --- a/APT.MicroApi/APT.FO.WebApi/Controllers/FireJobController.cs +++ b/APT.MicroApi/APT.FO.WebApi/Controllers/FireJobController.cs @@ -87,6 +87,14 @@ namespace APT.FO.WebApi.Controllers { entity.CODE = "DHZY" + DateTime.Now.ToShortDateString().Replace("/", "") + new Random().Next(1, 999); } + if (entity.FIRE_USER_ID == null) + { + throw new Exception("动火负责人必须填写"); + } + if (entity.SAFE_USER_ID == null) + { + throw new Exception("安全管理人员必须填写"); + } var details = entity.Nav_Details; if (details != null && details.Any()) {