...
|
...
|
@@ -67,9 +67,10 @@ func (cmd *SearchEmployeeAttendanceQuery) Valid(validation *validation.Validatio |
|
|
validation.Error("结束时间有误")
|
|
|
return
|
|
|
}
|
|
|
if cmd.SignBeginTime.Equal(cmd.SignEndTime) {
|
|
|
cmd.SignEndTime = cmd.SignEndTime.Add(time.Hour * 24)
|
|
|
}
|
|
|
cmd.SignEndTime = cmd.SignEndTime.AddDate(0, 0, 1)
|
|
|
//if cmd.SignBeginTime.Equal(cmd.SignEndTime) {
|
|
|
// cmd.SignEndTime = cmd.SignEndTime.Add(time.Hour * 24)
|
|
|
//}
|
|
|
}
|
|
|
//cmd.AttendanceStatus = 6 // 审核 + 自动审核
|
|
|
cmd.InAttendanceStatus = []int{2, 3}
|
...
|
...
|
|