From ded90459304bf4549872e5a4d53f1d32949ce1b4 Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Tue, 1 Apr 2025 18:03:23 +0800 Subject: [PATCH] worker --- service/staff_salary.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/staff_salary.go b/service/staff_salary.go index 18d9def..b2100d6 100644 --- a/service/staff_salary.go +++ b/service/staff_salary.go @@ -297,7 +297,7 @@ 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) + 1.5) //加上午休的1.5小时 realWorkdays += goutil.If(duration > 1, 1, duration) } }