This commit is contained in:
何美荣 2025-11-26 18:06:12 +08:00
parent 68bf40e59e
commit 992d3b535a

View File

@ -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())
{