作者 tangxvhui

更新

@@ -41,7 +41,6 @@ func (srv StaffAssessServeice) ListAllAssessCycle(companyid int) (map[string]int @@ -41,7 +41,6 @@ func (srv StaffAssessServeice) ListAllAssessCycle(companyid int) (map[string]int
41 "list": cycleList, 41 "list": cycleList,
42 } 42 }
43 return result, nil 43 return result, nil
44 -  
45 } 44 }
46 45
47 // 获取周期内的考核日期 46 // 获取周期内的考核日期
@@ -202,7 +202,7 @@ func (srv *SummaryEvaluationService) AfterCompletedEvaluationSelf( @@ -202,7 +202,7 @@ func (srv *SummaryEvaluationService) AfterCompletedEvaluationSelf(
202 202
203 if noSuper && evaluationFinish != nil { 203 if noSuper && evaluationFinish != nil {
204 //没有上级评估 同步数据到考核结果 204 //没有上级评估 同步数据到考核结果
205 - //提取非360,hrbp 的评估项 205 +
206 itemUsedRepo := factory.CreateEvaluationItemUsedRepository(map[string]interface{}{ 206 itemUsedRepo := factory.CreateEvaluationItemUsedRepository(map[string]interface{}{
207 "transactionContext": transactionContext, 207 "transactionContext": transactionContext,
208 }) 208 })
@@ -213,7 +213,7 @@ func (srv *SummaryEvaluationService) AfterCompletedEvaluationSelf( @@ -213,7 +213,7 @@ func (srv *SummaryEvaluationService) AfterCompletedEvaluationSelf(
213 if err != nil { 213 if err != nil {
214 return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) 214 return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
215 } 215 }
216 - 216 + //提取非360,hrbp 的评估项
217 updateValue := []*domain.SummaryEvaluationValue{} 217 updateValue := []*domain.SummaryEvaluationValue{}
218 for _, val := range itemList { 218 for _, val := range itemList {
219 if val.EvaluatorId != 0 { 219 if val.EvaluatorId != 0 {
@@ -189,3 +189,11 @@ func (srv *SummaryEvaluationService) CountEvaluationSelfLevelV2(param *command.Q @@ -189,3 +189,11 @@ func (srv *SummaryEvaluationService) CountEvaluationSelfLevelV2(param *command.Q
189 } 189 }
190 return &evaluationInfo, nil 190 return &evaluationInfo, nil
191 } 191 }
  192 +
  193 +// 获取已结束的周期列表
  194 +func (srv *SummaryEvaluationService) CycleList() (map[string]interface{}, error) {
  195 + // select distinct summary_evaluation.cycle_id ,summary_evaluation.cycle_name ,summary_evaluation.company_id
  196 + // from summary_evaluation
  197 + // where "types" =5
  198 + return nil, nil
  199 +}