vacation2
This commit is contained in:
parent
0b8e8991a1
commit
23162c2181
|
@ -222,7 +222,7 @@ func (s *Staff) SyncStaffSalary(month string) {
|
|||
|
||||
//同一天请假时长大于8小时算一天
|
||||
if startTime.Format("2006-01-02") == endTime.Format("2006-01-02") && vac.VacationDuration > 1 {
|
||||
holiday += vac.VacationDuration
|
||||
holiday += 1
|
||||
} else {
|
||||
holiday += vac.VacationDuration
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue