check
This commit is contained in:
parent
7322a3ab90
commit
d29c37250a
|
@ -188,9 +188,11 @@ func (s *StaffSalary) getRealWorkDay(month string) float64 {
|
||||||
}
|
}
|
||||||
|
|
||||||
//其他按工作时长结算
|
//其他按工作时长结算
|
||||||
|
if checkin.EndTime > 0 && checkin.StartTime > 0 {
|
||||||
duration := float64(checkin.EndTime-checkin.StartTime) / cast.ToFloat64(corp.GetConfig().WorkerHouer)
|
duration := float64(checkin.EndTime-checkin.StartTime) / cast.ToFloat64(corp.GetConfig().WorkerHouer)
|
||||||
realWorkdays += goutil.If(duration > 1, 1, duration)
|
realWorkdays += goutil.If(duration > 1, 1, duration)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return realWorkdays
|
return realWorkdays
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue