vacation3

This commit is contained in:
jiangyong27 2024-11-01 14:49:47 +08:00
parent 23162c2181
commit 86f66cf654
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ func (s *Staff) SyncStaffSalary(month string) {
surplusHoliday := float64(0)
for _, vac := range approveVacations {
startTime, _ := time.ParseInLocation(vac.VacationStartTime, "2006-01-02 15:04:05", time.Local)
endTime, _ := time.ParseInLocation(vac.VacationStartTime, "2006-01-02 15:04:05", time.Local)
endTime, _ := time.ParseInLocation(vac.VacationEndTime, "2006-01-02 15:04:05", time.Local)
//同一天请假时长大于8小时算一天
if startTime.Format("2006-01-02") == endTime.Format("2006-01-02") && vac.VacationDuration > 1 {