...
|
...
|
@@ -181,12 +181,12 @@ func (productAttendanceRecord *ProductAttendanceRecord) AttendanceBreakTime(prod |
|
|
var (
|
|
|
checkSignIn, checkSignOut time.Time
|
|
|
)
|
|
|
checkSignIn = v.GetCheckBeginTime(signIn)
|
|
|
checkSignOut = v.GetCheckEndTime(signIn)
|
|
|
checkSignIn = v.GetCheckBeginTime(signIn.Local())
|
|
|
checkSignOut = v.GetCheckEndTime(signIn.Local())
|
|
|
if xtime.BeforeEqual(signIn.Local(), checkSignIn) && xtime.AfterEqual(signOut.Local(), checkSignOut) {
|
|
|
bt += v.BreakTime
|
|
|
}
|
|
|
log.Logger.Debug(fmt.Sprintf("range(%v,%v) actual(%v,%v)", checkSignIn, checkSignOut, signIn.Local(), signOut.Local()))
|
|
|
log.Logger.Debug(fmt.Sprintf("range(%v,%v) actual(%v,%v) break_time:%v", checkSignIn, checkSignOut, signIn.Local(), signOut.Local(), bt))
|
|
|
}
|
|
|
if productAttendanceRecord.Ext != nil && productAttendanceRecord.Ext.AttendanceExt != nil {
|
|
|
productAttendanceRecord.Ext.AttendanceExt.BreakTime = bt
|
...
|
...
|
|