|
@@ -105,11 +105,11 @@ func (attendanceService *AttendanceService) CreateAttendance(operateInfo *domain |
|
@@ -105,11 +105,11 @@ func (attendanceService *AttendanceService) CreateAttendance(operateInfo *domain |
105
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
105
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
106
|
}
|
106
|
}
|
107
|
|
107
|
|
108
|
- var productGroup *domain.ProductGroup
|
|
|
109
|
- _, productGroup, err = factory.FastPgProductGroup(transactionContext, cmd.ProductGroupId)
|
|
|
110
|
- if err != nil {
|
|
|
111
|
- return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
112
|
- }
|
108
|
+ // var productGroup *domain.ProductGroup
|
|
|
109
|
+ // _, productGroup, err = factory.FastPgProductGroup(transactionContext, cmd.ProductGroupId)
|
|
|
110
|
+ // if err != nil {
|
|
|
111
|
+ // return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
112
|
+ // }
|
113
|
|
113
|
|
114
|
//var workTime float64 = 0
|
114
|
//var workTime float64 = 0
|
115
|
//if cmd.WorkTime-cmd.BreakTime > 0 {
|
115
|
//if cmd.WorkTime-cmd.BreakTime > 0 {
|
|
@@ -145,8 +145,8 @@ func (attendanceService *AttendanceService) CreateAttendance(operateInfo *domain |
|
@@ -145,8 +145,8 @@ func (attendanceService *AttendanceService) CreateAttendance(operateInfo *domain |
145
|
CreatedAt: time.Now(),
|
145
|
CreatedAt: time.Now(),
|
146
|
UpdatedAt: time.Now(),
|
146
|
UpdatedAt: time.Now(),
|
147
|
Ext: domain.NewExt(org.OrgName).WithAttendanceExt(&domain.ProductAttendanceRecordExt{
|
147
|
Ext: domain.NewExt(org.OrgName).WithAttendanceExt(&domain.ProductAttendanceRecordExt{
|
148
|
- GroupName: productGroup.GroupName,
|
|
|
149
|
- ProductGroupId: productGroup.ProductGroupId,
|
148
|
+ // GroupName: productGroup.GroupName,
|
|
|
149
|
+ // ProductGroupId: productGroup.ProductGroupId,
|
150
|
BreakTime: cmd.BreakTime,
|
150
|
BreakTime: cmd.BreakTime,
|
151
|
}),
|
151
|
}),
|
152
|
ProductDate: productDate,
|
152
|
ProductDate: productDate,
|