检查通知时间判断

This commit is contained in:
何美荣 2026-04-04 17:56:16 +08:00
parent b49ce874a5
commit c64446969e

View File

@ -162,7 +162,7 @@ namespace APT.SK.WebApi.Controllers.Api
throw new Exception("检查类型不能为空");
if (entity.CHECK_TIME == null || entity.CHECK_TIME == DateTime.MinValue)
throw new Exception("检查时间必须填写");
if (DateTime.Now.AddMinutes(30) <= entity.CHECK_TIME)
if (DateTime.Now.AddMinutes(30) > entity.CHECK_TIME)
throw new Exception("检查时间不得短于半小时,请修改检查时间");
T_FM_NOTIFICATION_TASK finishNotice = null;
if (entity.STATUS != PFStandardStatus.Draft)