Commit 42a30cf3 by ruyun.zhang

考勤BUG修复

parent 9bedc476
......@@ -256,7 +256,7 @@ public ApiResponse BatchCallIn(int allotId, int hospitalId, SaveCollectData requ
}
}
if (newAttendanceVacatione[i].CallInUnitType != cofaccounting.FirstOrDefault(t => t.AccountingUnit == newAttendanceVacatione[i].CallInAccountingUnit)?.UnitType)
if (!cofaccounting.Any(t => t.AccountingUnit == newAttendanceVacatione[i].CallInAccountingUnit && t.UnitType == newAttendanceVacatione[i].CallInUnitType))
{
error.Add(new Dictionary<string, string>
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment