作者 郑周

Merge branch 'dev-zhengzhou' into test

@@ -15,7 +15,7 @@ import ( @@ -15,7 +15,7 @@ import (
15 ) 15 )
16 16
17 // Evaluation360List 获取360综评列表 17 // Evaluation360List 获取360综评列表
18 -func (srv *SummaryEvaluationService) Evaluation360List(param *command.QueryEvaluation360List) (*adapter.SummaryEvaluationAdapter, error) { 18 +func (srv *SummaryEvaluationService) Evaluation360List(param *command.QueryEvaluation360List) (map[string]interface{}, error) {
19 transactionContext, err := factory.ValidateStartTransaction(param) 19 transactionContext, err := factory.ValidateStartTransaction(param)
20 if err != nil { 20 if err != nil {
21 return nil, err 21 return nil, err
@@ -136,7 +136,7 @@ func (srv *SummaryEvaluationService) Evaluation360List(param *command.QueryEvalu @@ -136,7 +136,7 @@ func (srv *SummaryEvaluationService) Evaluation360List(param *command.QueryEvalu
136 rowMap["targetUserName"] = v.TargetUser.UserName 136 rowMap["targetUserName"] = v.TargetUser.UserName
137 rowMap["statusVal"] = statusVal 137 rowMap["statusVal"] = statusVal
138 rowMap["relation"] = "项目组员" 138 rowMap["relation"] = "项目组员"
139 - rowMap["endTime"] = endTime.Format("2006-01-02 15:04") 139 + rowMap["endTime"] = endTime.Local().Format("2006-01-02 15:04")
140 140
141 // 当前项目所有评估内容 141 // 当前项目所有评估内容
142 if pList, ok := itemMap[v.EvaluationProjectId]; ok { 142 if pList, ok := itemMap[v.EvaluationProjectId]; ok {
@@ -164,12 +164,23 @@ func (srv *SummaryEvaluationService) Evaluation360List(param *command.QueryEvalu @@ -164,12 +164,23 @@ func (srv *SummaryEvaluationService) Evaluation360List(param *command.QueryEvalu
164 } 164 }
165 targetList = append(targetList, rowMap) 165 targetList = append(targetList, rowMap)
166 } 166 }
  167 +
  168 + // 外层显示截止时间
  169 + endTime := ""
  170 + if len(list) > 0 {
  171 + endTime = list[0].EndTime.Local().Format("2006-01-02 15:04:05")
  172 + }
  173 +
167 result := &adapter.SummaryEvaluationAdapter{ 174 result := &adapter.SummaryEvaluationAdapter{
168 TableHeader: changeableHeader, 175 TableHeader: changeableHeader,
169 Total: count, 176 Total: count,
170 List: targetList, 177 List: targetList,
171 } 178 }
172 - return result, nil 179 + grid := map[string]interface{}{
  180 + "grid": result,
  181 + "endTime": endTime,
  182 + }
  183 + return grid, nil
173 } 184 }
174 185
175 // GetEvaluation360 获取360综评详情(登录人作为评估人,评估内容) 186 // GetEvaluation360 获取360综评详情(登录人作为评估人,评估内容)
@@ -577,7 +588,7 @@ func (srv *SummaryEvaluationService) EvaluationHRBPList(param *command.QueryEval @@ -577,7 +588,7 @@ func (srv *SummaryEvaluationService) EvaluationHRBPList(param *command.QueryEval
577 Position: positionBuild.String(), 588 Position: positionBuild.String(),
578 DutyTime: entryTime, 589 DutyTime: entryTime,
579 Status: statusVal, 590 Status: statusVal,
580 - EndTime: endTime.Format("2006-01-02 15:04"), 591 + EndTime: endTime.Local().Format("2006-01-02 15:04"),
581 OverdueCount: overdueCount, 592 OverdueCount: overdueCount,
582 } 593 }
583 resultList = append(resultList, result) 594 resultList = append(resultList, result)
@@ -587,7 +598,15 @@ func (srv *SummaryEvaluationService) EvaluationHRBPList(param *command.QueryEval @@ -587,7 +598,15 @@ func (srv *SummaryEvaluationService) EvaluationHRBPList(param *command.QueryEval
587 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) 598 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
588 } 599 }
589 600
590 - return tool_funs.SimpleWrapGridMap(int64(count), resultList), nil 601 + // 外层显示截止时间
  602 + endTime := ""
  603 + if len(list) > 0 {
  604 + endTime = list[0].EndTime.Local().Format("2006-01-02 15:04:05")
  605 + }
  606 + grid := tool_funs.SimpleWrapGridMap(int64(count), resultList)
  607 + grid["endTime"] = endTime
  608 + return grid, nil
  609 + //return tool_funs.SimpleWrapGridMap(int64(count), resultList), nil
591 } 610 }
592 611
593 // GetEvaluationHRBP 获取人资综评详情 612 // GetEvaluationHRBP 获取人资综评详情