岗位当班触发交接班
This commit is contained in:
parent
5b802c8a5f
commit
14ed765fc1
@ -200,7 +200,7 @@ namespace APT.FO.WebApi.Controllers.Api.FO
|
||||
if (currCalendar != null)
|
||||
{
|
||||
var currCalendarID = currCalendar.CALENDAR_ID;
|
||||
var currDepartmentConfig = GetEntity<T_FM_DEPARTMENT_CALENDAR_CONFIG_TEAM>(t => t.TEAM_ID == entity.CLASS_TEAM_ID && t.IS_DELETED == false, "Nav_DepartmentCalendarConfig");
|
||||
var currDepartmentConfig = GetEntity<T_FM_DEPARTMENT_CALENDAR_CONFIG_TEAM>(t => t.TEAM_ID == entity.CLASS_TEAM_ID && t.IS_DELETED == false &&t.Nav_DepartmentCalendarConfig!=null && t.Nav_DepartmentCalendarConfig.ENABLE_STATUS == 0, "Nav_DepartmentCalendarConfig");
|
||||
if (currDepartmentConfig==null || currDepartmentConfig.Nav_DepartmentCalendarConfig == null)
|
||||
{
|
||||
//throw new Exception("未找到排班数据!");
|
||||
@ -223,6 +223,10 @@ namespace APT.FO.WebApi.Controllers.Api.FO
|
||||
entity.REMARK = "未能找到接班人员";
|
||||
}
|
||||
}
|
||||
else if (isManual)
|
||||
{
|
||||
CreateChangeShiftRecord(entity, users, files, null);
|
||||
}
|
||||
}
|
||||
else if (isManual)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user