作者 yangfu

fix: 公司统计测试

... ... @@ -2,8 +2,10 @@ package domain
import (
"errors"
"fmt"
"github.com/linmadan/egglib-go/utils/xtime"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/infrastructure/utils"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/log"
"time"
)
... ... @@ -184,8 +186,10 @@ func (productAttendanceRecord *ProductAttendanceRecord) AttendanceBreakTime(prod
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)", checkSignIn, checkSignOut, signIn.Local(), signOut.Local()))
}
if productAttendanceRecord.Ext != nil && productAttendanceRecord.Ext.AttendanceExt != nil {
productAttendanceRecord.Ext.AttendanceExt.BreakTime = bt
}
return bt
}
... ...