检查时间防呆判定
This commit is contained in:
parent
a5e739a774
commit
09998a37aa
@ -162,6 +162,8 @@ 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)
|
||||
throw new Exception("检查时间不得短于半小时,请修改检查时间");
|
||||
T_FM_NOTIFICATION_TASK finishNotice = null;
|
||||
if (entity.STATUS != PFStandardStatus.Draft)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user