holday
This commit is contained in:
parent
c67818f644
commit
ba9e99e98f
|
@ -227,8 +227,8 @@ func (s *Staff) loadHoliday(month string) (map[string]float64, error) {
|
||||||
}
|
}
|
||||||
userId := detail.GetUserid()
|
userId := detail.GetUserid()
|
||||||
holidayType := detail.GetValue("请假类型")
|
holidayType := detail.GetValue("请假类型")
|
||||||
fields := strings.SplitN(holidayType, ",", 2)
|
fields := strings.SplitN(holidayType, ",", 4)
|
||||||
hours := float64(cast.ToInt64(fields[1])) / float64(3600*8)
|
hours := float64(cast.ToInt64(fields[3])) / float64(3600*8)
|
||||||
if v, ok := result[userId]; ok {
|
if v, ok := result[userId]; ok {
|
||||||
result[userId] = v + hours
|
result[userId] = v + hours
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue