作者 tangxvhui

日常

@@ -2,6 +2,8 @@ package service @@ -2,6 +2,8 @@ package service
2 2
3 import ( 3 import (
4 "fmt" 4 "fmt"
  5 + "time"
  6 +
5 "github.com/linmadan/egglib-go/core/application" 7 "github.com/linmadan/egglib-go/core/application"
6 "github.com/linmadan/egglib-go/transaction/pg" 8 "github.com/linmadan/egglib-go/transaction/pg"
7 "github.com/linmadan/egglib-go/utils/xtime" 9 "github.com/linmadan/egglib-go/utils/xtime"
@@ -13,12 +15,16 @@ import ( @@ -13,12 +15,16 @@ import (
13 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/infrastructure/dao" 15 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/infrastructure/dao"
14 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/infrastructure/domainService" 16 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/infrastructure/domainService"
15 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/infrastructure/utils" 17 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/infrastructure/utils"
16 - "time"  
17 ) 18 )
18 19
19 type AttendanceService struct { 20 type AttendanceService struct {
20 } 21 }
21 22
  23 +func NewAttendanceService(options map[string]interface{}) *AttendanceService {
  24 + newAttendanceService := &AttendanceService{}
  25 + return newAttendanceService
  26 +}
  27 +
22 // 审核工时 28 // 审核工时
23 func (attendanceService *AttendanceService) ApproveAttendance(cmd *command.ApproveAttendanceCommand) (interface{}, error) { 29 func (attendanceService *AttendanceService) ApproveAttendance(cmd *command.ApproveAttendanceCommand) (interface{}, error) {
24 if err := cmd.ValidateCommand(); err != nil { 30 if err := cmd.ValidateCommand(); err != nil {
@@ -427,7 +433,5 @@ func (attendanceService *AttendanceService) SearchWorkshopWorkTimeStatics(operat @@ -427,7 +433,5 @@ func (attendanceService *AttendanceService) SearchWorkshopWorkTimeStatics(operat
427 return count, result, nil 433 return count, result, nil
428 } 434 }
429 435
430 -func NewAttendanceService(options map[string]interface{}) *AttendanceService {  
431 - newAttendanceService := &AttendanceService{}  
432 - return newAttendanceService  
433 -} 436 +//ImportDataAttendance 工时管理,导入工时数据
  437 +func (attendanceService *AttendanceService) ImportDataAttendance() {}
@@ -36,8 +36,3 @@ func (attendanceService *AttendanceService) WorkshopWorkTimeRecordStatics(cmd *c @@ -36,8 +36,3 @@ func (attendanceService *AttendanceService) WorkshopWorkTimeRecordStatics(cmd *c
36 } 36 }
37 return struct{}{}, nil 37 return struct{}{}, nil
38 } 38 }
39 -  
40 -//导入工时数据  
41 -func (attendanceService *AttendanceService) ImportDataAttendance() error {  
42 - return nil  
43 -}