...
|
...
|
@@ -2,11 +2,12 @@ package service |
|
|
|
|
|
import (
|
|
|
"fmt"
|
|
|
service "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/role"
|
|
|
"sort"
|
|
|
"strconv"
|
|
|
"time"
|
|
|
|
|
|
service "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/role"
|
|
|
|
|
|
"github.com/linmadan/egglib-go/core/application"
|
|
|
"github.com/linmadan/egglib-go/utils/tool_funs"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/factory"
|
...
|
...
|
@@ -373,7 +374,7 @@ func (srv StaffAssessServeice) createStaffAssessSelf( |
|
|
assessRepo := factory.CreateStaffAssessRepository(map[string]interface{}{
|
|
|
"transactionContext": transactionContext,
|
|
|
})
|
|
|
beginDay := assessTemp.BeginTime.Format("2006-01-02")
|
|
|
beginDay := assessTemp.BeginTime.Local().Format("2006-01-02")
|
|
|
_, assessListOld, err := assessRepo.Find(map[string]interface{}{"cycleId": assessTemp.CycleId, "beginDay": beginDay, "types": domain.AssessSelf})
|
|
|
if err != nil {
|
|
|
return nil, err
|
...
|
...
|
@@ -419,7 +420,7 @@ func (srv StaffAssessServeice) createStaffAssessSupper( |
|
|
assessRepo := factory.CreateStaffAssessRepository(map[string]interface{}{
|
|
|
"transactionContext": transactionContext,
|
|
|
})
|
|
|
beginDay := assessTemp.BeginTime.Format("2006-01-02")
|
|
|
beginDay := assessTemp.BeginTime.Local().Format("2006-01-02")
|
|
|
_, assessListOld, err := assessRepo.Find(map[string]interface{}{"cycleId": assessTemp.CycleId, "beginDay": beginDay, "types": domain.AssessSuper})
|
|
|
if err != nil {
|
|
|
return nil, err
|
...
|
...
|
|