岗位当班签到BUG修复
This commit is contained in:
parent
b6c4b30923
commit
48135e1fdd
@ -426,6 +426,8 @@ namespace APT.FO.WebApi.Controllers.Api.FO
|
|||||||
model.SHIFT_STATUS = (int)FOShiftStatusEnum.归档;
|
model.SHIFT_STATUS = (int)FOShiftStatusEnum.归档;
|
||||||
model.AUDIT_DATE = DateTime.Now;
|
model.AUDIT_DATE = DateTime.Now;
|
||||||
var currCalendar = this.GetEntity<T_FM_CALENDAR_CLASS>(t => t.CLASS_ID == model.CLASS_ID);
|
var currCalendar = this.GetEntity<T_FM_CALENDAR_CLASS>(t => t.CLASS_ID == model.CLASS_ID);
|
||||||
|
if (currCalendar != null)
|
||||||
|
{
|
||||||
var currCalendarID = currCalendar.CALENDAR_ID;
|
var currCalendarID = currCalendar.CALENDAR_ID;
|
||||||
var currDepartmentConfig = GetEntity<T_FM_DEPARTMENT_CALENDAR_CONFIG_TEAM>(t => t.TEAM_ID == model.CLASS_TEAM_ID && t.IS_DELETED == false, "Nav_DepartmentCalendarConfig");
|
var currDepartmentConfig = GetEntity<T_FM_DEPARTMENT_CALENDAR_CONFIG_TEAM>(t => t.TEAM_ID == model.CLASS_TEAM_ID && t.IS_DELETED == false, "Nav_DepartmentCalendarConfig");
|
||||||
if (currDepartmentConfig != null && currDepartmentConfig.Nav_DepartmentCalendarConfig.IS_HANDOVER == true)
|
if (currDepartmentConfig != null && currDepartmentConfig.Nav_DepartmentCalendarConfig.IS_HANDOVER == true)
|
||||||
@ -448,6 +450,11 @@ namespace APT.FO.WebApi.Controllers.Api.FO
|
|||||||
CreateChangeShiftRecord(entity, users, files, null);
|
CreateChangeShiftRecord(entity, users, files, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (model.IS_HANDOVER)
|
||||||
|
{
|
||||||
|
CreateChangeShiftRecord(entity, users, files, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
UnifiedCommit(() =>
|
UnifiedCommit(() =>
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user