...
|
...
|
@@ -169,26 +169,26 @@ func (se *summaryEvaluationPublisher) sendSummaryEvaluationV2( |
|
|
beginTimeSelf := *cycleData.TimeEnd //
|
|
|
beginDay := dayEndTime(beginTimeSelf)
|
|
|
//修改 周期结束时间那天的第二天开始计算
|
|
|
endTimeSelf := beginDay.Add(time.Duration(permissioData.CycleDeadLine.AssessmentSelf.Hour) * time.Hour).
|
|
|
Add(time.Duration(permissioData.CycleDeadLine.AssessmentSelf.Minute) * time.Minute)
|
|
|
endTimeSelf := beginDay.Add(time.Duration(permissioData.CycleDeadline.AssessmentSelf.Hour) * time.Hour).
|
|
|
Add(time.Duration(permissioData.CycleDeadline.AssessmentSelf.Minute) * time.Minute)
|
|
|
//人资、360评估的时间范围
|
|
|
beginTime360 := endTimeSelf
|
|
|
endTime360 := beginDay.Add(time.Duration(permissioData.CycleDeadLine.AssessmentAll.Hour) * time.Hour).
|
|
|
Add(time.Duration(permissioData.CycleDeadLine.AssessmentAll.Minute) * time.Minute)
|
|
|
endTime360 := beginDay.Add(time.Duration(permissioData.CycleDeadline.AssessmentAll.Hour) * time.Hour).
|
|
|
Add(time.Duration(permissioData.CycleDeadline.AssessmentAll.Minute) * time.Minute)
|
|
|
//人资评估的时间范围
|
|
|
beginTimeHr := endTimeSelf
|
|
|
endTimeHr := beginDay.Add(time.Duration(permissioData.CycleDeadLine.AssessmentHr.Hour) * time.Hour).
|
|
|
Add(time.Duration(permissioData.CycleDeadLine.AssessmentHr.Minute) * time.Minute)
|
|
|
endTimeHr := beginDay.Add(time.Duration(permissioData.CycleDeadline.AssessmentHr.Hour) * time.Hour).
|
|
|
Add(time.Duration(permissioData.CycleDeadline.AssessmentHr.Minute) * time.Minute)
|
|
|
|
|
|
//上级评估的是时间范围
|
|
|
beginTimeSuper := endTimeHr
|
|
|
endTimeSuper := beginDay.Add(time.Duration(permissioData.CycleDeadLine.AssessmentSuperior.Hour) * time.Hour).
|
|
|
Add(time.Duration(permissioData.CycleDeadLine.AssessmentSuperior.Minute) * time.Minute)
|
|
|
endTimeSuper := beginDay.Add(time.Duration(permissioData.CycleDeadline.AssessmentSuperior.Hour) * time.Hour).
|
|
|
Add(time.Duration(permissioData.CycleDeadline.AssessmentSuperior.Minute) * time.Minute)
|
|
|
|
|
|
//考核结果的时间范围
|
|
|
beginTimeFinish := endTimeSuper
|
|
|
endTimeFinish := beginDay.Add(time.Duration(permissioData.CycleDeadLine.ViewMyPerf.Hour) * time.Hour).
|
|
|
Add(time.Duration(permissioData.CycleDeadLine.ViewMyPerf.Minute) * time.Minute)
|
|
|
endTimeFinish := beginDay.Add(time.Duration(permissioData.CycleDeadline.ViewMyPerf.Hour) * time.Hour).
|
|
|
Add(time.Duration(permissioData.CycleDeadline.ViewMyPerf.Minute) * time.Minute)
|
|
|
// 创建周期评估任务
|
|
|
var newEvaluationList []domain.SummaryEvaluation
|
|
|
evaluationTemp := domain.SummaryEvaluation{
|
...
|
...
|
|