vacation3
This commit is contained in:
parent
23162c2181
commit
86f66cf654
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue