This commit is contained in:
jiangyong 2024-06-02 00:37:12 +08:00
parent dafa43d688
commit 186ed9ae10
1 changed files with 3 additions and 0 deletions

View File

@ -274,6 +274,9 @@ func (s *Staff) getRealWorkDay(username, month string) float64 {
if strings.Contains(checkin.Exception, "上班打卡:时间异常") {
stTime := time.Unix(checkin.StartTime, 0)
later := float64(stTime.Hour() - 8) //迟到小时数从9点算
if later > 8 {
later = 8
}
realWorkdays += (8 - later) / 8
continue
}