This commit is contained in:
jiangyong27 2024-01-08 22:23:30 +08:00
parent c67818f644
commit ba9e99e98f
1 changed files with 2 additions and 2 deletions

View File

@ -227,8 +227,8 @@ func (s *Staff) loadHoliday(month string) (map[string]float64, error) {
}
userId := detail.GetUserid()
holidayType := detail.GetValue("请假类型")
fields := strings.SplitN(holidayType, ",", 2)
hours := float64(cast.ToInt64(fields[1])) / float64(3600*8)
fields := strings.SplitN(holidayType, ",", 4)
hours := float64(cast.ToInt64(fields[3])) / float64(3600*8)
if v, ok := result[userId]; ok {
result[userId] = v + hours
} else {