...
|
...
|
@@ -2,6 +2,8 @@ package service |
|
|
|
|
|
import (
|
|
|
"fmt"
|
|
|
"time"
|
|
|
|
|
|
"github.com/linmadan/egglib-go/core/application"
|
|
|
"github.com/linmadan/egglib-go/transaction/pg"
|
|
|
"github.com/linmadan/egglib-go/utils/xtime"
|
...
|
...
|
@@ -13,12 +15,16 @@ import ( |
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/infrastructure/dao"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/infrastructure/domainService"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/infrastructure/utils"
|
|
|
"time"
|
|
|
)
|
|
|
|
|
|
type AttendanceService struct {
|
|
|
}
|
|
|
|
|
|
func NewAttendanceService(options map[string]interface{}) *AttendanceService {
|
|
|
newAttendanceService := &AttendanceService{}
|
|
|
return newAttendanceService
|
|
|
}
|
|
|
|
|
|
// 审核工时
|
|
|
func (attendanceService *AttendanceService) ApproveAttendance(cmd *command.ApproveAttendanceCommand) (interface{}, error) {
|
|
|
if err := cmd.ValidateCommand(); err != nil {
|
...
|
...
|
@@ -427,7 +433,5 @@ func (attendanceService *AttendanceService) SearchWorkshopWorkTimeStatics(operat |
|
|
return count, result, nil
|
|
|
}
|
|
|
|
|
|
func NewAttendanceService(options map[string]interface{}) *AttendanceService {
|
|
|
newAttendanceService := &AttendanceService{}
|
|
|
return newAttendanceService
|
|
|
} |
|
|
//ImportDataAttendance 工时管理,导入工时数据
|
|
|
func (attendanceService *AttendanceService) ImportDataAttendance() {} |
...
|
...
|
|