later >8
This commit is contained in:
parent
dafa43d688
commit
186ed9ae10
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue