|
@@ -343,7 +343,7 @@ func (srv *SummaryEvaluationService) buildSummaryItemValue(itemList []*domain.Ev |
|
@@ -343,7 +343,7 @@ func (srv *SummaryEvaluationService) buildSummaryItemValue(itemList []*domain.Ev |
343
|
Category: v.Category,
|
343
|
Category: v.Category,
|
344
|
Name: v.Name,
|
344
|
Name: v.Name,
|
345
|
PromptTitle: v.PromptTitle,
|
345
|
PromptTitle: v.PromptTitle,
|
346
|
- PromptText: "",
|
346
|
+ PromptText: v.PromptText,
|
347
|
EntryItems: v.EntryItems,
|
347
|
EntryItems: v.EntryItems,
|
348
|
RuleType: v.RuleType,
|
348
|
RuleType: v.RuleType,
|
349
|
Rule: v.Rule,
|
349
|
Rule: v.Rule,
|
|
@@ -354,14 +354,6 @@ func (srv *SummaryEvaluationService) buildSummaryItemValue(itemList []*domain.Ev |
|
@@ -354,14 +354,6 @@ func (srv *SummaryEvaluationService) buildSummaryItemValue(itemList []*domain.Ev |
354
|
Remark: "",
|
354
|
Remark: "",
|
355
|
EvaluatorId: v.EvaluatorId,
|
355
|
EvaluatorId: v.EvaluatorId,
|
356
|
}
|
356
|
}
|
357
|
- //PromptText 页面展示 特殊处理
|
|
|
358
|
- // if len(v.EntryItems) > 0 {
|
|
|
359
|
-
|
|
|
360
|
- for _, v2 := range v.EntryItems {
|
|
|
361
|
- item.PromptText += v2.Title + "\n"
|
|
|
362
|
- }
|
|
|
363
|
- item.PromptText += v.PromptText
|
|
|
364
|
- // }
|
|
|
365
|
value, ok := valueMap[v.Id]
|
357
|
value, ok := valueMap[v.Id]
|
366
|
if ok {
|
358
|
if ok {
|
367
|
item.Score = value.Score
|
359
|
item.Score = value.Score
|
|
@@ -1398,7 +1390,7 @@ func (srv *SummaryEvaluationService) ListExecutorEvaluationSuper(param *command. |
|
@@ -1398,7 +1390,7 @@ func (srv *SummaryEvaluationService) ListExecutorEvaluationSuper(param *command. |
1398
|
TargetUserName: v.TargetUser.UserName,
|
1390
|
TargetUserName: v.TargetUser.UserName,
|
1399
|
TargetUserId: v.TargetUser.UserId,
|
1391
|
TargetUserId: v.TargetUser.UserId,
|
1400
|
EvaluationStatus: string(v.Status),
|
1392
|
EvaluationStatus: string(v.Status),
|
1401
|
- EndTime: v.EndTime.Format("2006-01-02 15:04:05"),
|
1393
|
+ EndTime: v.EndTime.Local().Format("2006-01-02 15:04:05"),
|
1402
|
TotalScoreSelf: "",
|
1394
|
TotalScoreSelf: "",
|
1403
|
Department: "",
|
1395
|
Department: "",
|
1404
|
Position: "",
|
1396
|
Position: "",
|
|
@@ -1428,7 +1420,7 @@ func (srv *SummaryEvaluationService) ListExecutorEvaluationSuper(param *command. |
|
@@ -1428,7 +1420,7 @@ func (srv *SummaryEvaluationService) ListExecutorEvaluationSuper(param *command. |
1428
|
result["endTime"] = ""
|
1420
|
result["endTime"] = ""
|
1429
|
result["uncompleted_number"] = 0
|
1421
|
result["uncompleted_number"] = 0
|
1430
|
if len(evaluationList) > 0 {
|
1422
|
if len(evaluationList) > 0 {
|
1431
|
- result["endTime"] = evaluationList[0].EndTime.Format("2006-01-02 15:04:05")
|
1423
|
+ result["endTime"] = evaluationList[0].EndTime.Local().Format("2006-01-02 15:04:05")
|
1432
|
result["uncompleted_number"] = cntUn
|
1424
|
result["uncompleted_number"] = cntUn
|
1433
|
}
|
1425
|
}
|
1434
|
return result, nil
|
1426
|
return result, nil
|
|
@@ -1453,6 +1445,7 @@ func (srv *SummaryEvaluationService) ConfirmScoreEvaluation(param *command.Confi |
|
@@ -1453,6 +1445,7 @@ func (srv *SummaryEvaluationService) ConfirmScoreEvaluation(param *command.Confi |
1453
|
if err != nil {
|
1445
|
if err != nil {
|
1454
|
return application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
1446
|
return application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
1455
|
}
|
1447
|
}
|
|
|
1448
|
+
|
1456
|
if result.Types != domain.EvaluationFinish {
|
1449
|
if result.Types != domain.EvaluationFinish {
|
1457
|
return application.ThrowError(application.TRANSACTION_ERROR, "操作方式错误")
|
1450
|
return application.ThrowError(application.TRANSACTION_ERROR, "操作方式错误")
|
1458
|
}
|
1451
|
}
|
|
@@ -1808,10 +1801,9 @@ func (srv *SummaryEvaluationService) ListAllEvaluationFinish(param *command.Quer |
|
@@ -1808,10 +1801,9 @@ func (srv *SummaryEvaluationService) ListAllEvaluationFinish(param *command.Quer |
1808
|
|
1801
|
|
1809
|
//获取评估列表信息
|
1802
|
//获取评估列表信息
|
1810
|
condition1 := map[string]interface{}{
|
1803
|
condition1 := map[string]interface{}{
|
1811
|
- "cycleId": param.CycleId,
|
|
|
1812
|
- "types": int(domain.EvaluationFinish),
|
|
|
1813
|
- "limit": limit,
|
|
|
1814
|
- "beginTime": time.Now(),
|
1804
|
+ "cycleId": param.CycleId,
|
|
|
1805
|
+ "types": int(domain.EvaluationFinish),
|
|
|
1806
|
+ "limit": limit,
|
1815
|
}
|
1807
|
}
|
1816
|
if offset > 0 {
|
1808
|
if offset > 0 {
|
1817
|
condition1["offset"] = offset
|
1809
|
condition1["offset"] = offset
|