班前会班次不能为空
This commit is contained in:
parent
53fc12b0fa
commit
3ffbfb4a93
@ -141,8 +141,13 @@ namespace APT.FO.WebApi.Controllers.Api.FO
|
||||
if (users == null || users.Count(t => t.IS_DELETED == false) == 0)
|
||||
{
|
||||
throw new Exception("通知人员不能为空");
|
||||
}
|
||||
if (entity.CLASS_ID == null)
|
||||
{
|
||||
throw new Exception("班次不能为空");
|
||||
//entity.START_TIME = DateTime.Now;
|
||||
//entity.END_TIME = entity.START_TIME.AddHours(24);
|
||||
}
|
||||
|
||||
if (entity.DEPARTMENT_ID == null)
|
||||
{
|
||||
var user = GetEntity<T_FM_USER>(t => t.ID == userID);
|
||||
@ -320,11 +325,6 @@ namespace APT.FO.WebApi.Controllers.Api.FO
|
||||
finishNotice = NotificationTaskService.FOGetTaskFinishModel(taskId, entity.ID, eye);
|
||||
}
|
||||
}
|
||||
if (entity.CLASS_ID == null)
|
||||
{
|
||||
entity.START_TIME = DateTime.Now;
|
||||
entity.END_TIME = entity.START_TIME.AddHours(24);
|
||||
}
|
||||
entity.Nav_User = null;
|
||||
users.ForEach(t => t.Nav_User = null);
|
||||
users.ForEach(t => t.ORG_ID = entity.ORG_ID);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user